View previous topic :: View next topic |
Author |
Message |
Princess Firefly Tux's lil' helper
Joined: 21 Apr 2002 Posts: 80
|
Posted: Tue Dec 10, 2002 5:25 pm Post subject: New directories created by user belong to root |
|
|
For some reason when any users on my system try to create a directory the new directory is owned by root (and hence they can't write to it). I tried with three different users
It seems to have popped up recently and not long ago I emerged the new portage and baselayout so maybe there's a problem in there...
The home directory is owned by the user (in this case 'forlorn') and the umask is 0022
Code: |
bash-2.05a$ ls -ld $HOME
drwx------ 54 forlorn users 4096 Dec 10 10:25 /home/forlorn
bash-2.05a$ umask
0022
bash-2.05a$ mkdir test
bash-2.05a$ ls -ld test
drwxr-xr-x 2 root root 4096 Dec 10 10:25 test
|
Any ideas?
xpfx |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Tue Dec 10, 2002 7:10 pm Post subject: |
|
|
Is /home setuid root? _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Princess Firefly Tux's lil' helper
Joined: 21 Apr 2002 Posts: 80
|
Posted: Wed Dec 11, 2002 7:28 am Post subject: not sure |
|
|
I'm not really sure how to check that. I thought setuid was for programs not for directories but obviously I'm missing something on the subject. How do I check?
In case this helps:
Code: |
bash-2.05a$ ls -ld /home
drwxr-xr-x 9 root root 4096 Dec 8 21:36 /home
|
|
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Wed Dec 11, 2002 7:45 am Post subject: |
|
|
Yeah, it would show up there, but it's not: Code: | # mkdir /tmp/afo
# chmod 4755 /tmp/afod
# ls -ld /tmp/afod
drwsr-xr-x 2 root root 48 Dec 10 23:43 /tmp/afod | ...if you make directories setgid to a particular group, than anybody that creates files in there will have ownership of them set to that group, instead of their primary group. That's the only thing I've ever used setgid directories for. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
Princess Firefly Tux's lil' helper
Joined: 21 Apr 2002 Posts: 80
|
Posted: Thu Dec 19, 2002 8:19 pm Post subject: |
|
|
So, is anyone else having this problem? Any ideas how to fix it, it's pretty annoying.
xpfx |
|
Back to top |
|
|
|