T
T
Twelfth Doctor2017-08-07 13:01:16
linux
Twelfth Doctor, 2017-08-07 13:01:16

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

4 answer(s)
F
Fixid, 2017-08-07
@Fixid

Never change the rights and the user to the root ( / )
They came up with chroot for isolation

C
CityCat4, 2017-08-07
@CityCat4

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 :)

Y
Yuri Chudnovsky, 2017-08-07
@Frankenstine

i need the user to be unable to go above his home directory

And how will users launch programs from, for example, /usr/? How about creating temporary files in /tmp/?
Do not touch the root, you will be safer :)

T
Twelfth Doctor, 2017-08-07
@verdex

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 question

Ask a Question

731 491 924 answers to any question