Re: [opensuse] rights for new user, a small problem of understanding...
Something simple -- Just make your home directory (/home/whatver) have 700 permissions: chmod 700 /home/whatever Since "users" and "world" won't have read or execute on that folder (with folder permissions, the "execute" is basically "browse"), they won't be able to do anything. (Root, however, will still be able to.) chrismyers:/home # useradd bob Creating mailbox file: File exists chrismyers:/home # su - bob su: warning: cannot change directory to /home/bob: No such file or directory bob@chrismyers:/home> cd cmyers/ bob@chrismyers:/home/cmyers> ls Desktop Public Documents Music bob@chrismyers:/home/cmyers> cd .. bob@chrismyers:/home> exit logout chrismyers:/home # ls -l total 16 drwxr-xr-x 106 cmyers users 4096 Jan 26 11:37 cmyers chrismyers:/home # chmod 700 cmyers chrismyers:/home # su - bob bob@chrismyers:/home> cd cmyers -bash: cd: cmyers: Permission denied bob@chrismyers:/home> cd cmyers/Desktop -bash: cd: cmyers/Desktop: Permission denied bob@chrismyers:/home>
Daniel Bauer <linux@daniel-bauer.com> 01/26/17 11:27 AM >>> Hi,
I'll give access to my computers to another person with her own new user. I see, that this user can see many or most of my files (read only), but I want that she can only see her own files. How can I achieve that? Do I have to change all the rights of my files? How do I do that safely (without causing problems to programs etc.)? How do I achieve that new files automatically are readable only by me (and root)? Thanks for your help! Daniel -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com -- Daniel Bauer photographer Basel Barcelona http://www.daniel-bauer.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Christopher Myers