
[gun(a)LinuxBox home]$ ls -ld drwxr-xr-x 5 root root 4096 May 12 08:55 . As you can see with the home directory, The owner of the directory has read/write/execute access. The group of the directory has read/execute access (No write access). Everyone else has read/execute access (No write access). Incidentally, root has full control of adelle, and if adelle is a user, tough, adelle ony is seen as Joe Public and has read execute access. For security reasons, I would leave it as is (and login as root to create subdirectories - this sort of thing should be automated when a new user is created - each user should have their own directory to do whatever and that should pertain to that user) but if you feel another way inclined want to have full control as a user, then chown gun home chgrp gun home Or else if you want want everyone to have rw access the chmod 777 home I hope this helps.
-----Original Message----- From: Gun Caundle [mailto:gun(a)paradise.net.nz] Sent: Wednesday, 12 May 2004 09:36 To: wlug(a)list.waikato.ac.nz Subject: [wlug] creating directories
I am trying to create a directory in my 'home' directory with my user login. However I can only create a directory as a root user and thus can't use it with my user login. I can use the 'gun' directory in 'home' with my user login. Any help would be appreciated.
[gun(a)LinuxBox home]$ mkdir adelle mkdir: cannot create directory `adelle': Permission denied [gun(a)LinuxBox home]$ su Password: [root(a)LinuxBox home]# mkdir adelle [root(a)LinuxBox home]# exit exit [gun(a)LinuxBox home]$ ls -ld drwxr-xr-x 5 root root 4096 May 12 08:55 . [gun(a)LinuxBox home]$ cd gun [gun(a)LinuxBox gun]$ ls -ld drwx------ 25 gun gun 4096 May 12 08:54 . [gun(a)LinuxBox gun]$ cd .. [gun(a)LinuxBox home]$ ls -ld adelle drwxr-xr-x 2 root root 4096 May 12 08:55 adelle [gun(a)LinuxBox home]$
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
participants (1)
-
Lindsay Druett