View previous topic :: View next topic |
Author |
Message |
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Mon Apr 26, 2010 9:27 pm Post subject: Permission denied |
|
|
my day do day user have a Permission denied to save or create how do i fix it
cant even get to startx .Permission denied to save or create ICEauthority and Xauthority |
|
Back to top |
|
|
paulbiz Guru
Joined: 01 Feb 2004 Posts: 508 Location: St. Louis, Missouri, USA
|
Posted: Mon Apr 26, 2010 10:31 pm Post subject: |
|
|
Be sure the disk is not out of free space |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22648
|
Posted: Tue Apr 27, 2010 2:53 am Post subject: |
|
|
paulbiz wrote: | Be sure the disk is not out of free space | A lack of free space would be reported as such.
It is more likely that the original poster has a bad permissions setting somewhere near the root of the filesystem, and is affecting everything under it. hedmo: please post the output of myh=~/.Xauthority; while [ "$myh" != '' ]; do ls -ld "$myh"; myh=${myh%/*}; done; ls -ld /. |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Tue Apr 27, 2010 6:25 pm Post subject: |
|
|
mybox ~ # myh=~/.Xauthority; while [ "$myh" != '' ]; do ls -ld "$myh"; myh=${myh%/*}; done; ls -ld /.
-rw------- 1 root root 99 Apr 19 22:28 /root/.Xauthority
drwx------ 22 root root 4096 Apr 27 20:24 /root
drwxr-xr-x 22 root root 4096 Apr 23 21:22 /.
mybox ~ # login
mybox login: hedmo
Password:
Last login: Tue Apr 27 20:23:42 GMT 2010 on tty1
hedmo@mybox ~ $ myh=~/.Xauthority; while [ "$myh" != '' ]; do ls -ld "$myh"; myh=${myh%/*}; done; ls -ld /.
-rw------- 1 hedmo users 189 Apr 13 19:23 /home/hedmo/.Xauthority
drwxr-xr-x 25 hedmo users 4096 Apr 27 20:24 /home/hedmo
drwxr-xr-x 5 root root 4096 Apr 18 11:01 /home
drwxr-xr-x 22 root root 4096 Apr 23 21:22 /.
hedmo@mybox ~ $ |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22648
|
Posted: Wed Apr 28, 2010 2:40 am Post subject: |
|
|
That looks normal. Please post a transcript from the moment you login to getty through to when you receive the error about unable to create Xauthority. |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Wed Apr 28, 2010 5:11 am Post subject: |
|
|
the error comes when i hit startx
i am using kde and it comes when
the statlogos loads kde trow me
out to xterm |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Wed Apr 28, 2010 3:36 pm Post subject: |
|
|
its not just .Xauthority its ever file in /home/hedmo that have Permission denied like when i quit mc i got another error
Cannot save file /home/hedmo/.mc/ini:
Failed to create file '/home/hedmo/.mc/ini.6OZYBV': Permission denied |
|
Back to top |
|
|
Inodoro_Pereyra Advocate
Joined: 03 Nov 2006 Posts: 2631 Location: En la otra punta del cable
|
Posted: Wed Apr 28, 2010 4:24 pm Post subject: |
|
|
Is your /home mounted with read-write permissions? Output of mount command should say something like this:
Code: | /dev/sda4 on /home type ext4 (rw,noatime) |
Look at rw.noatime.
Have you tryed to chown of /home/hedmo files recursively?
Code: | chown -R hedmo:hedmo /home/hedmo |
Cheers! _________________ Mi Blog.
Si no fuera por C, estaríamos escribiendo programas en BASI, PASAL y OBOL. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9609 Location: beyond the rim
|
Posted: Wed Apr 28, 2010 4:31 pm Post subject: |
|
|
If you have strace installed try:
Code: | strace touch ~/testfile 2>&1 | tail -n 50 |
and post the output.
One other thing I can think of is if you played around with your accounts that maybe you have two users with the same name but different UID. Repeat the command Hu gave you, but replace `ls -ld` with `ls -ldn` and also post the output of the `id` command. It's very unlikely but possible. |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Wed Apr 28, 2010 5:39 pm Post subject: |
|
|
okej i dont realy know guys what you are saying to me but i will try to make something of it
Genone i dont have strace installed.is this something i need
i just have one user
mybox hedmo # ls /home
hedmo lost+found mythtv
mybox hedmo #
but when i make something like installing or some thing like that i hit (in a terminal)
hedmo@mybox ~ $ su
Password:
mybox hedmo #
if this is bad thing
Inodoro_Pereyra the only thing i know about "/home mounted" is that i am using raid0 and lvm and this is my fstab
/dev/vg/home /home ext3 noatime 1 2
and
mybox hedmo # chown -R hedmo:hedmo /home/hedmo
chown: invalid group: `hedmo:hedmo' |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Wed Apr 28, 2010 5:49 pm Post subject: |
|
|
mybox / # myh=~/.Xauthority; while [ "$myh" != '' ]; do ls -ldn "$myh"; myh=${myh%/*}; done; ls -ldn /.
-rw------- 1 0 0 99 Apr 19 22:28 /root/.Xauthority
drwx------ 24 0 0 4096 Apr 28 17:29 /root
drwxr-xr-x 22 0 0 4096 Apr 23 21:22 /.
mybox / # login
mybox login: hedmo
Password:
Last login: Wed Apr 28 18:38:23 GMT 2010 on pts/0
hedmo@mybox ~ $ myh=~/.Xauthority; while [ "$myh" != '' ]; do ls -ldn "$myh"; myh=${myh%/*}; done; ls -ldn /.
-rw------- 1 1000 100 189 Apr 13 19:23 /home/hedmo/.Xauthority
drwxr-xr-x 25 1000 100 4096 Apr 28 17:33 /home/hedmo
drwxr-xr-x 5 0 0 4096 Apr 18 11:01 /home
drwxr-xr-x 22 0 0 4096 Apr 23 21:22 /.
hedmo@mybox ~ $ id root
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
hedmo@mybox ~ $ id hedmo
uid=1000(hedmo) gid=100(users) groups=100(users),7(lp),10(wheel),18(audio),19(cdrom),27(video),85(usb),250(portage),16(cron),1004(plugdev),1006(vboxusers)
hedmo@mybox ~ $ |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9609 Location: beyond the rim
|
Posted: Wed Apr 28, 2010 7:01 pm Post subject: |
|
|
Ok, nothing wrong/weird with the UIDs. As for strace, it's a very useful tool to pinpoint the exact error location, though you have to know how to use it to get any useful results, and it doesn't magically tell you why the error appears. Not sure it would be very helpful in this case, but it's always a good thing to have around.
Btw, do you normally start a root shell and then use `login` to get to your user account, or is that just for demonstration purposes? Because that's rather unusual, and I don't know if `login` really works as intended in that use case. |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Thu Apr 29, 2010 4:14 pm Post subject: |
|
|
at the good 90`s i was using dos so when a switch from win to gentoo it was a nostalgic feeling to start at the dos-promt (console)
but when i makeing replys i am in a terminal at kde with my root at the moment and it works with login and out
and every thing i do i make it in the console
BTW tryed another od thing loged in as user and make comand sudo startx and i got in to my user desktop but some of his thins was as in root desktop
so i got out right away |
|
Back to top |
|
|
hedmo Veteran
Joined: 29 Aug 2009 Posts: 1331 Location: sweden
|
Posted: Thu Apr 29, 2010 6:51 pm Post subject: |
|
|
i have lxpanel installed and i can start it with my user but still not kde and save mc |
|
Back to top |
|
|
|