Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
permissions problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
thekillerbean
n00b
n00b


Joined: 24 Jul 2002
Posts: 29

PostPosted: Sat Jul 27, 2002 10:32 pm    Post subject: permissions problems Reply with quote

something has happened since my install of gentoo as i can no longer create files in my home directory. would anyone happen to know what could be wrong? i tried the following:
Code:

$ touch newfile
$ touch: creating 'newfile': Permission denied

the umask is set at 0022 if that helps any. if more information is required, i'll provide it immediately.

thanks.
Back to top
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Sat Jul 27, 2002 10:44 pm    Post subject: Reply with quote

Run ls -ld $HOME to check that ownership and permissions are correct. Your umask sounds correct to me.
I'm not sure how it happened (that you can't create files in your home directory), but it should be easy enough to fix with chown and/or chmod.
Back to top
View user's profile Send private message
thekillerbean
n00b
n00b


Joined: 24 Jul 2002
Posts: 29

PostPosted: Sat Jul 27, 2002 10:51 pm    Post subject: Reply with quote

okay, i just did what you asked and now i see the following:
Code:

drwxr-xr-x    2 root     root           40 Jul 24 10:12 /home/bean

is this correct?

let me also add that i've just realized that there was a power outage last night for a few seconds and my system shutdown.
Back to top
View user's profile Send private message
tomas
n00b
n00b


Joined: 05 Jul 2002
Posts: 62
Location: Sweden

PostPosted: Sat Jul 27, 2002 10:59 pm    Post subject: Reply with quote

That says that root is owner of your home directory. It should say:
Code:
drwxr-xr-x  2 bean   users     40 Jul 24 10:12 /home/bean


Run chown -R bean.users /home/bean/
Back to top
View user's profile Send private message
thekillerbean
n00b
n00b


Joined: 24 Jul 2002
Posts: 29

PostPosted: Sat Jul 27, 2002 11:00 pm    Post subject: Reply with quote

fixed - thank you tomas! i did the chown and now all is well.

would the shutdown have caused change of ownership during a run of fsck? i did see that fsck was run when system was coming up but did not think much of it. when i found my machine off i though that i had turned it off gracefully before going to bed last night - turned out it was an outage as the microwave had a time of 0 on it.


Last edited by thekillerbean on Sat Jul 27, 2002 11:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sat Jul 27, 2002 11:01 pm    Post subject: Reply with quote

No, not correct.
If it's bean's home-dir, it should be owned by bean.
So do:
(while in /home and logged in as root)
# chown -R bean.users bean
that should give you a dir like this:
drwxr-xr-x 2 bean users 40 Jul 24 10:12 /home/bean

This is pretty basic linux stuff, you might want to read some more about simple linux system administration. It will save you a lot of surprises...

good luck
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
thekillerbean
n00b
n00b


Joined: 24 Jul 2002
Posts: 29

PostPosted: Sat Jul 27, 2002 11:04 pm    Post subject: Reply with quote

i'm actually pretty conversant as a user, only never really had to deal much with permissions at this level. i do agree - a little (well, alot) more reading is in order.

however, since things were okay before the premature shutdown, would the fsck run have changed ownership in order to fix the filesystem - had it needed fixing?
Back to top
View user's profile Send private message
JeroenV
Guru
Guru


Joined: 16 Jul 2002
Posts: 447
Location: Amsterdam / Hamburg

PostPosted: Sat Jul 27, 2002 11:14 pm    Post subject: Reply with quote

I've heard about strange things happening to the fs after crashes, most of the problems being wrong permissions. I have no technical explanation, however.
Btw, I'm a happy user of the xfs filesystem for about 2 weeks now :)
Maybe that one's more robust?

Cheers
_________________
Cheers 8)
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you!
Back to top
View user's profile Send private message
thekillerbean
n00b
n00b


Joined: 24 Jul 2002
Posts: 29

PostPosted: Sat Jul 27, 2002 11:44 pm    Post subject: Reply with quote

i'm also using xfs (!!!)
Back to top
View user's profile Send private message
Lockup
Guru
Guru


Joined: 25 Jul 2002
Posts: 430

PostPosted: Sun Jul 28, 2002 4:48 pm    Post subject: Reply with quote

heh getting the same prob, only that for me its the *root* dir that cant be written to
just noticed while kde was emerging, saw loads of lines that said "creating /root/BLA[...]" Error: no permission
im gonna let it finish compiling though to see if itll still work...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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