Answer the question
In order to leave comments, you need to log in
What rights are safe to root?
Hello. By default, Ubuntu Linux has permissions of 755 on the root folder (/). I tried to put 711, the sites worked, but problems with FTP started. Are those root rights that come out of the box safe?
Those. I need the user to be unable to rise above his home directory /home/%username%
The /home directory has permissions 711
Will this be enough?
Answer the question
In order to leave comments, you need to log in
Never change the rights and the user to the root ( / )
They came up with chroot for isolation
Safe. Without a clear knowledge of what you are doing, you should not change something in the root, system libs, grub, kernel, etc. - you can grab problems up to your ears.
If FTP via proftpd, there is this parameter:
It will cut off access above home for everyone who is not included in the local wheel group - when trying to go higher, it will be reported, then there is nowhere higher - this is the root :)
i need the user to be unable to go above his home directory
Only one user had problems with FTP, whose home folder was at the root of the server. The problem is solved by granting --x rights to the given user on /.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question