Results 1 to 8 of 8
Hello
Here in my organization all pc are ubuntu. Now, I want to develop umask on user.
scenario is that person (who loged in) can only access his home directory ...
- 09-13-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 7
Umask on users
Hello
Here in my organization all pc are ubuntu. Now, I want to develop umask on user.
scenario is that person (who loged in) can only access his home directory not others home directory.
Please Guide me.
- 09-13-2011 #2
I am not getting your question. Isn't it default in all Linux distros that one use can not access home folders of other users?
Only user having root privileges can access all /home/ folder.It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-13-2011 #3Just Joined!
- Join Date
- Sep 2011
- Posts
- 19
- 09-14-2011 #4Just Joined!
- Join Date
- Jun 2011
- Posts
- 7
by default permissions on "/home" folder are
#ls -l /home
drwxr-xr-x 26 ashish ashish 4096 2011-09-14 10:41 ashish
drwxr-xr-x 6 ved ved 4096 2011-09-10 15:04 ved
drwxr-xr-x 5 yogesh yogesh 4096 2011-09-13 15:21 yogesh
drwxr-xr-x 2 hiren hiren 4096 2011-09-13 18:15 hiren
drwxr-xr-x 3 rahul rahul 4096 2011-09-13 18:15 rahul
Now, I want this as belove
drwx------ 26 ashish ashish 4096 2011-09-14 10:41 ashish
drwx------ 6 ved ved 4096 2011-09-10 15:04 ved
drwx------ 5 yogesh yogesh 4096 2011-09-13 15:21 yogesh
drwx------ 2 hiren hiren 4096 2011-09-13 18:15 hiren
drwx------ 3 rahul rahul 4096 2011-09-13 18:15 rahul
Please Help me
- 09-14-2011 #5Just Joined!
- Join Date
- Jun 2011
- Posts
- 7
Hello "LinuxSecurity"
I tried as you mentioned, but the problem is that its changed the permission for newly files not for "/home" folder......... Please advise
- 09-14-2011 #6Just Joined!
- Join Date
- Sep 2011
- Posts
- 52
You need to configure the FTP server you are using to chroot the users to their home directory
- 09-14-2011 #7Just Joined!
- Join Date
- Jun 2011
- Posts
- 7
Sorry I think you haven't catch my question. I wanna use umask on users' home directory not on ftp user.....
Yes I know about ftp configuration in that there is one option who can put ftp user in jail....
Please, read my question carefully and advise
- 09-15-2011 #8Just Joined!
- Join Date
- Sep 2011
- Posts
- 19
I think what you mean is that you would like to change the UNIX discretionary access controls for existing users' files and directories.
Be careful with these commands! Be certain that you understand what they are doing, as they may also lockout system services which need access to users home directories, such as Apache.
This command will change all directories in/home to 0700 permissions:
find /home -type d -exec chmod -v 0700 {} \;
And this command will change all files in this folder to 0600 permissions. Be careful with this command, because if you have scripts in this directory it will remove the executable bit and they will not execute:
find /home -type f -exec chmod -v 0600 {} \;
After running these two commands, be sure to change ownership of /home to 0711 so that users will still have access to their own home directories:
chmod 0711 /home/.
-Eric


Reply With Quote

