View previous topic :: View next topic |
Author |
Message |
thekillerbean n00b
Joined: 24 Jul 2002 Posts: 29
|
Posted: Sat Jul 27, 2002 10:32 pm Post subject: permissions problems |
|
|
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 |
|
|
tomas n00b
Joined: 05 Jul 2002 Posts: 62 Location: Sweden
|
Posted: Sat Jul 27, 2002 10:44 pm Post subject: |
|
|
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 |
|
|
thekillerbean n00b
Joined: 24 Jul 2002 Posts: 29
|
Posted: Sat Jul 27, 2002 10:51 pm Post subject: |
|
|
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 |
|
|
tomas n00b
Joined: 05 Jul 2002 Posts: 62 Location: Sweden
|
Posted: Sat Jul 27, 2002 10:59 pm Post subject: |
|
|
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 |
|
|
thekillerbean n00b
Joined: 24 Jul 2002 Posts: 29
|
Posted: Sat Jul 27, 2002 11:00 pm Post subject: |
|
|
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 |
|
|
JeroenV Guru
Joined: 16 Jul 2002 Posts: 447 Location: Amsterdam / Hamburg
|
Posted: Sat Jul 27, 2002 11:01 pm Post subject: |
|
|
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
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
Back to top |
|
|
thekillerbean n00b
Joined: 24 Jul 2002 Posts: 29
|
Posted: Sat Jul 27, 2002 11:04 pm Post subject: |
|
|
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 |
|
|
JeroenV Guru
Joined: 16 Jul 2002 Posts: 447 Location: Amsterdam / Hamburg
|
Posted: Sat Jul 27, 2002 11:14 pm Post subject: |
|
|
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
Jeroen
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
May The Source be with you! |
|
Back to top |
|
|
thekillerbean n00b
Joined: 24 Jul 2002 Posts: 29
|
Posted: Sat Jul 27, 2002 11:44 pm Post subject: |
|
|
i'm also using xfs (!!!) |
|
Back to top |
|
|
Lockup Guru
Joined: 25 Jul 2002 Posts: 430
|
Posted: Sun Jul 28, 2002 4:48 pm Post subject: |
|
|
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 |
|
|
|