You are not logged in.

#1 2012-02-05 15:10:41

wLee
Member
From: Amsterdam, NL
Registered: 2008-12-06
Posts: 33

[SOLVED] Chmod wrong dir, system doesn't boot

I changed permissions on the wrong directory, now the system won't boot anymore.
There's no seperate boot partition, all files are in / and /home/user, and that /user is the messed up one.
Everything in there is now permissioned as 700 (owner root).

I do have a pendrive with Arch, so I think I need to mount /home on the memorystick and chmod the dir again.
Problem is I can't find out how and don't know the right permissions. Think it was 777, but not for sure.

i would really appreciate your help here people!

Last edited by wLee (2012-02-06 20:13:22)

Offline

#2 2012-02-05 15:36:53

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] Chmod wrong dir, system doesn't boot

The permissions of a folder (or it's contents) in /home shouldn't prevent Arch from booting. The permissions should be 0750 with $USERNAME:users as the ownership though.

Do you get an error message when booting up?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2012-02-05 15:55:36

wLee
Member
From: Amsterdam, NL
Registered: 2008-12-06
Posts: 33

Re: [SOLVED] Chmod wrong dir, system doesn't boot

I must be wrong on the ownership then.
Every time at startup it reports both / and /home are not cleanly unmounted, then there's an errormessage wich goes to fast to read and the screen goes black. No auto reboot.

Offline

#4 2012-02-05 19:04:36

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Chmod wrong dir, system doesn't boot

wLee wrote:

Every time at startup it reports both / and /home are not cleanly unmounted, then there's an errormessage wich goes to fast to read and the screen goes black. No auto reboot.

This in itself doesn't sound right. If I've forced a shutdown by pressing the power button when the system's frozen, say, nothing is stopped cleanly and things are definitely not cleanly unmounted. But I've not ended up at a black screen in the way you've described. At worst, I've been dumped at a recovery prompt asking me to log in as root and clean things up before proceeding. But usually the system just figures things out on its own. That's not to say that the scenario you describe can't happen but it sounds wrong if that follows every time.

I think the correct ownership and permissions of /home/user depend on the way you have things configured. My user directories are owned by <username>:<username> because they're set up for user groups but <username>:users is probably the default. My home directory has permissions of 0700  Another has permissions of 1775 (but this is not a standard user). Neither of these are default but they don't prevent booting...

I don't understand how the permissions on your home directory could prevent booting because until you log in, the system doesn't know which is your home directory. But there are configuration options which would e.g. prevent login if ~/ was not available or writeable - though I don't think these are default for Arch.

Can you boot into single-user mode? That certainly shouldn't be upset by permissions on users' home directories.


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

#5 2012-02-06 06:01:11

wLee
Member
From: Amsterdam, NL
Registered: 2008-12-06
Posts: 33

Re: [SOLVED] Chmod wrong dir, system doesn't boot

Got into a loginscreen twice now, set permissions back to 750 and found out that owner of user was 700.... Changed it back.
Logged in as user and started GUI, after reboot black screen again.
Seems to get to login at random, autologin does'nt work for sure.

One of the errors is about about /dev device is busy.

Next time at login I will set it to single user mode.

Offline

#6 2012-02-06 20:12:53

wLee
Member
From: Amsterdam, NL
Registered: 2008-12-06
Posts: 33

Re: [SOLVED] Chmod wrong dir, system doesn't boot

Problem solved: all hidden files in /user were also permissioned as 700, changed that but still didn't boot right.
Deleted .Xauthority (found here https://bbs.archlinux.org/viewtopic.php?id=73552) and sytem is back to normal again.

Thanks for your help!

Offline

Board footer

Powered by FluxBB