Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New directories created by user belong to root
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Princess Firefly
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 80

PostPosted: Tue Dec 10, 2002 5:25 pm    Post subject: New directories created by user belong to root Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Dec 10, 2002 7:10 pm    Post subject: Reply with quote

Is /home setuid root?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Princess Firefly
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 80

PostPosted: Wed Dec 11, 2002 7:28 am    Post subject: not sure Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Dec 11, 2002 7:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Princess Firefly
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2002
Posts: 80

PostPosted: Thu Dec 19, 2002 8:19 pm    Post subject: Reply with quote

So, is anyone else having this problem? Any ideas how to fix it, it's pretty annoying.

xpfx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum