You are not logged in.
Whenever I boot my install up, I am unable to log in to my account(s) using GDM. I get a message mentioning that it cannot write .ICEauthority for some reason. If I try to delete the file using "rm .ICEauthority", it says that I do not have permission to do so. If I try "sudo rm .ICEauthority", it works. Whenever I log in, I can't seem to be able to save anything; it keeps saying that permission is denied. If I using a TTY console run "sudo chown -R ryanmcclure *" and "sudo chown -R ryanmcclure .*", it suddenly works again. However, if I log out and try to log in, it all happens again. This happens on my account and another standard user account. I ran "ls -l" on a few directories, and the permissions don't seem to be absolutely correct; a few of them say "root:ryanmcclure" when it seems like "root:root" should be correct (This is when I run it under the directory "/"). Something seems to be absolutely terribly wrong with my partitions. I can give any of you the readout of "ls -l" of any directory/file if you need to see exactly what it is like upon boot. Any help would be appreciated on this mess!
By the way, if I were to paste the readout of a command on here, should I use pastebin or should I simply enter the readout on the forum reply?
Offline
Actual output would be good.
Also, post your fstab.
Is ryanmcclure your user name?
What is your user's primary group?
Use [ code ][ /code ] tags (without the spaces) here or pastebin (if there is really a lot of it - I wouldn't think you'd need that here for a couple of ls -l and fstab).
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Here is "ls -l" under /
[ryanmcclure@ryanslinuxbox /]$ ls -l
total 1164
drwxr-xr-x 2 ryanmcclure root 4096 Nov 4 10:21 bin
drwxr-xr-x 4 ryanmcclure root 4096 Nov 2 16:42 boot
-rw------- 1 ryanmcclure root 1368064 Oct 25 22:42 core
drwxr-xr-x 18 root root 2940 Nov 5 23:03 dev
drwxr-xr-x 98 ryanmcclure root 4096 Nov 5 23:03 etc
drwxr-xr-x 4 ryanmcclure root 4096 Oct 27 16:56 home
lrwxrwxrwx 1 ryanmcclure root 7 Oct 24 17:37 lib -> usr/lib
lrwxrwxrwx 1 ryanmcclure root 7 Oct 24 17:37 lib64 -> usr/lib
drwx------ 2 ryanmcclure root 16384 Oct 25 18:53 lost+found
drwxr-xr-x 3 ryanmcclure root 4096 Oct 27 21:17 media
drwxr-xr-x 4 ryanmcclure root 4096 Oct 27 15:05 mnt
drwxr-xr-x 5 ryanmcclure root 4096 Nov 1 21:02 opt
dr-xr-xr-x 153 root root 0 Nov 5 23:03 proc
drwxr-x--- 14 ryanmcclure root 4096 Oct 31 23:50 root
drwxr-xr-x 25 root root 640 Nov 5 23:03 run
drwxr-xr-x 2 root root 4096 Nov 3 16:51 sbin
drwxr-xr-x 4 root root 4096 Oct 23 10:30 srv
dr-xr-xr-x 13 root root 0 Nov 5 23:03 sys
drwxrwxrwt 17 root root 380 Nov 5 23:07 tmp
drwxr-xr-x 11 root root 4096 Oct 30 15:30 usr
drwxr-xr-x 13 root root 4096 Nov 3 16:51 varHere is my fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
# UUID=477ee67f-92c2-4a28-89fe-eb499284a319
/dev/sda1 / ext4 rw,relatime, 0 2My username is ryanmcclure.
I am unsure of my user's primary group, as I do not know how to find that. "groups ryanmcclure" gives me
sys lp wheel games network video audio optical storage scanner power users"id ryanmcclure" gives me
uid=1000(ryanmcclure) gid=100(users) groups=100(users),3(sys),7(lp),10(wheel),50(games),90(network),91(video),92(audio),93(optical),95(storage),96(scanner),98(power)If I didn't post the correct information, let me know the command and I'll get it up here in no time.
Offline
Ouch
Here is mine
[skunk@skunk-develop ~]$ ls -l /
total 280
drwxr-xr-x 2 root root 4096 Nov 4 14:29 bin
drwxr-xr-x 3 root root 4096 Nov 3 09:03 boot
drwxr-xr-x 18 root root 3300 Nov 6 11:18 dev
drwxr-xr-x 94 root root 12288 Nov 6 12:26 etc
drwxr-xr-x 5 root root 4096 Dec 20 2010 home
lrwxrwxrwx 1 root root 7 Oct 25 07:37 lib -> usr/lib
lrwxrwxrwx 1 root root 7 Oct 25 07:37 lib64 -> usr/lib
drwx------ 2 root root 225280 May 9 2011 lost+found
drwxr-xr-x 2 root root 4096 Nov 5 10:28 media
drwxr-xr-x 3 root root 4096 May 14 08:51 mnt
drwxr-xr-x 7 root root 4096 Nov 5 09:55 opt
dr-xr-xr-x 216 root root 0 Nov 5 15:21 proc
drwxr-x--- 18 root root 4096 Oct 5 12:03 root
drwxr-xr-x 24 root root 660 Nov 5 19:33 run
drwxr-xr-x 2 root root 4096 Nov 2 10:27 sbin
drwxr-xr-x 4 root root 4096 Oct 24 00:30 srv
dr-xr-xr-x 13 root root 0 Nov 5 15:21 sys
drwxrwxrwt 17 root root 480 Nov 6 14:03 tmp
drwxr-xr-x 10 root root 4096 Oct 26 09:23 usr
drwxr-xr-x 14 root root 4096 Oct 26 09:23 varOffline
Here also is the default permissions of another user; I had to run
# chown -R ryanmcclure /home/ryanmcclure/
# chown -R ryanmcclure /home/ryanmcclure/.*to get my account to even load from GDM.
Readout of another user, "amyfree"
[ryanmcclure@ryanslinuxbox amyfree]$ ls -l
total 48
drwxr-xr-x 3 ryanmcclure amyfree 4096 Nov 5 23:02 Desktop
drwxr-xr-x 6 ryanmcclure amyfree 4096 Nov 5 12:44 Documents
drwxr-xr-x 2 ryanmcclure amyfree 4096 Nov 5 17:08 Downloads
-rw-r--r-- 1 ryanmcclure root 8445 Aug 17 01:40 examples.desktop
drwxr-xr-x 2 ryanmcclure root 4096 Oct 24 07:52 fontconfig
drwxr-xr-x 2 ryanmcclure amyfree 4096 Oct 28 01:22 Music
drwxr-xr-x 2 ryanmcclure amyfree 4096 Nov 4 21:19 Pictures
drwxr-xr-x 2 ryanmcclure amyfree 4096 Oct 28 01:22 Public
drwxr-xr-x 3 ryanmcclure amyfree 4096 Nov 1 03:02 Templates
drwxr-xr-x 2 ryanmcclure amyfree 4096 Oct 28 01:22 VideosSomething definately tells me this isn't right....
I don't usually even touch that folder, and when I do it's when I'm logged in as that user. I'm not sure what is wrong here.
Offline
Yikes, Skunktrader!!!! Mine is INCREDIBLY messed up!
Offline
Unfortunately, that seems to summarise things pretty well.
Your primary group is users (gid is the id for the users group in the output of id).
Your fstab doesn't look right, either, although I doubt that could have caused this. The last number for the / mount should be '1' rather than '2'. Also, I don't think you should have a comma at the end of the options. And is there any reason not to use "defaults,relatime" rather than "rw,relatime".
I guess you have to decide whether you want to try to repair the permissions or to reinstall. Too bad there's no "repair permissions" tool for Linux! (That I know of, anyway.) Presumably, you'll want to keep some of the stuff under /home regardless so you'll need to go through the permissions for that stuff either way.
The output isn't making great sense to me. Is amyfree a group as well as a user? If not, how can subdirectories in amyfree's home be assigned to user ryanmcclure and group amyfree?
EDIT: I just thought of something. Can you post the contents of /etc/group and /etc/passwd? (The latter doesn't contain passwords as these are shadowed.) Also, can you repeat the ls -l command on the same directories but using -n in place of -l? I'm just wondering if something weird has happened to your group/passwd files rather than the permissions on disk themselves. (There must be some issue with permissions since that wouldn't explain the inconsistencies but it seems bizarre that your permissions could be so generally screwed up.)
Did you do anything or did anything happen which you can think might have caused this?
Last edited by cfr (2012-11-06 23:23:12)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I'm just as confused as you are about amyfree being a group! I'm still clueless about that! I've decided that I might as well just reinstall. I've backed up my /home directory and a few customised files from other directories to an external hard disk formatted as FAT (That way, EXT permissions don't screw me over too!) As for what I may have done, I have no idea. I updated my system, turned it off that night, and the next morning all of this started happening. I wish I could give you the readouts of /etc/group and /etc/passwd but currently they no longer exist--I may have jumped the gun on that.
Offline
Oh, well. If you are reinstalling anyway it would only be to satisfy my curiosity at this point. (I thought that if they were messed up you might be able to restore those and possibly find the damage was not as extensive as feared.) To be honest, I think reinstalling is probably the safest option in this case - probably quicker than trying to verify and correct all the permissions on disk!
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
It's not clear what you did to get things into this weird state. Whatever it was, though - don't do that again. ![]()
After you restore from your backup, you may need to
chown -R ryanmcclure:users /home/ryanmcclure- but please don't change any other permissions unless you know why and what for!
Offline
You should probably also change amyfree's:
sudo chown -R amyfree:users /home/amyfree(or su if you prefer it to sudo).
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
the backup is on a fat drive, and that has very little permission options.
Why not use plain "cp -r" into new home folders and let the kernel/filesystem use/set correct permissions ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Will the kernel/filesystem set correct permissions when you use cp -r from a fat drive? I don't have a fat drive to test, but I kind of remember it just making everything 755. I could be totally wrong though.
Edit: I just remembered my /boot is vfat. So I tried it, and I don't know that it actually makes things the correct permissions, so much as simply making everything -rwxr-xr-x (755).
Last edited by WonderWoofy (2012-11-08 16:01:50)
Offline