Dev null home directory


















If you want the user to not be able to create files in their home directory, don't give them write permissions on the directory. But make sure that it is a directory. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more.

Ask Question. Asked 7 years, 1 month ago. Active 7 years, 1 month ago. Viewed 3k times. Improve this question. Connect and share knowledge within a single location that is structured and easy to search. You will need to set up a "jail. Find the files that you need to support a session.

Ideally you only want the bare minimum since the goal is to hide the rest of the system:. Here -m sets the permissions and c is for a character device and the two numbers are the major and minor device numbers:.

Now you can set the files to be owned by root and only writable by root :. The figure out which libraries bash needs in order to run NOTE: you may need more than just the lib64 libraries. Now for any program that you want the jailed shell to have access to you need to repeat copying over the binary and checking which shared libraries are needed and copying those over just as you did with bash.

So if you want ls you would do:. Sign up to join this community. A special one of course a device file , a special file allowing accessing piece of hardware like disks, partitions, sound cards, serial ports, This is why "they" may have called it a blackhole. Ubuntu Community Ask! Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. Ask Question. Asked 7 years, 10 months ago. Active 4 years, 11 months ago. Viewed 51k times. Improve this question. Braiam Avinash Raj Avinash Raj Add a comment. Active Oldest Votes. Customize the Taskbar in Windows What Is svchost. Best Smartwatches. Best Gaming Laptops. Best Smart Displays.

Best Home Security Systems. Best External Solid State Drives. Best Portable Chargers. Best Phone Chargers. Best Wi-Fi Range Extenders. Best Oculus Quest 2 Accessories. Best iPad Air Cases. Awesome PC Accessories. Best Linux Laptops. Best Wireless iPhone Earbuds.



0コメント

  • 1000 / 1000