Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Markus on August 25, 2003, 02:02:23 AM
-
Hi !
I have a big problem with the permissions of the /home directory.
I wantet to change the permissions in a user home directory. I was in the
Users home directory when i wrote: chown username:groupname /home
I known that this was a big mistake but @!#$ happens :-( I need to know how i can restore the original permissions on the /home directory and the subdirectories...
A nother idea is that someone woult write me the permissions of his/her /home directory and the standard directories.
Please help me quick.
Thanks!
Markus
-
Hi there !
Step one - rights under /home/e-smith/files/users/
[root@erginsme01 root]# cd /home/e-smith/files/users/
[root@erginsme01 users]# ls -al
total 36
drwxr-xr-x 9 root root 4096 Aug 24 21:42 .
drwxr-xr-x 7 root root 4096 Jun 26 22:15 ..
drwxr-xr-x 4 admin admin 4096 Jul 14 22:32 admin
drwx------ 5 denise denise 4096 Aug 23 10:19 denise
drwx------ 8 ergozd ergozd 4096 Aug 24 13:26 ergozd
drwx------ 5 eric hakan 4096 Aug 23 10:19 hakan
drwx------ 6 forward forward 4096 Aug 23 10:19 forward
Step 2
[root@erginsme01 users]# cd hakan
[root@erginsme01 hakan]# ls -al
total 24
drwx------ 5 hakan hakan 4096 Aug 23 10:19 .
drwxr-xr-x 9 root root 4096 Aug 24 21:42 ..
drwxr-xr-x 2 hakan hakan 4096 Aug 15 18:35 home
drwx------ 2 hakan hakan 4096 Aug 23 10:15 Mail
drwxr-xr-x 7 hakan hakan 4096 Aug 23 10:15 Maildir
-rw-r--r-- 1 hakan hakan 416 Aug 15 18:40 .qmail
lrwxrwxrwx 1 root admin 6 Aug 15 18:35 .qmail-default -> .qmail
and step 3
[root@erginsme01 hakan]# cd home
[root@erginsme01 home]# ls -al
total 8
drwxr-xr-x 2 hakan hakan 4096 Aug 15 18:35 .
drwx------ 5 hakan hakan 4096 Aug 23 10:19 ..
Hope it helps... ;-)
-
Hi,
Have you tried this?
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
Might auto-magically redo all permissions.
-
Derek sounds like he is on the right idea for a quick fix as e-smith is notorious for resetting itself after these commands are applied. So i reckon it will work if not it is worth a try
-
many many many thanks..... this was nearly to easy but it worked fine....