LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2014, 02:28 PM   #1
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Write bits inexplicable changed in /home


Here's a puzzle:

All my files in my home directory somehow suddenly lost their w attribute, ie became ro. The execute and read bits were not affected, and the filesystem was still mounted rw. They looked like -rw-r--r-- I was not running X as root, never do. The user and group ownership were unchanged.

I was running KDE and first noticed it when I tried downloading a file and could only copy it to my Desktop, not my downloads in /home/me. I also had an open file in Kwrite which couldn't save. I had removed lesstif and added openMotif. Root's account seems to be the same, but I'm not sure the permissions weren't always that way.

I shutdown, ran fsck from init 1, looked at smartctl and there were no errors. Of course I couldn't run init 4 or startx from init 3, because no .Xauthority could be written, nor any .serverauthority.

So I typed chmod a+w *, and everything seems to be ok again.

BUT:

What could account for that, and what else might have been affected?

Last edited by mostlyharmless; 03-15-2014 at 02:30 PM.
 
Old 03-15-2014, 05:07 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,258

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
-rw-r--r-- means owner may read/write, group and others may only read. So I think they were in the correct state. This is the normal permissions on files in the home directory.
 
Old 03-15-2014, 07:21 PM   #3
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859

Original Poster
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Perhaps, but I couldn't write to them. I see that I can no longer run Crossover either; is the ownership of /home/me supposed to be me and users or is it supposed to be root and root?
 
Old 03-15-2014, 07:41 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,311
Blog Entries: 24

Rep: Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263
It should be me and users.

BUT - your case is not clear to me from your posts, the execute bit MUST be set on all those directories and sub directories. - That is, whereas files should be rwxr--r-- in the user home by default, sub directories should be rwxr-xr-x by default.

Last edited by astrogeek; 03-15-2014 at 07:55 PM.
 
Old 03-16-2014, 12:11 AM   #5
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,859

Original Poster
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Hmm, so then the directory ownership got changed. Interesting, thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cryptography... what's difference between 8bits / 16 bits / 32 bits/ 64 bits/128bits? ybpark81 Linux - Security 4 02-19-2012 09:38 AM
cannot write $(HOME).dmrc file home is on a seperate partition Person_1873 Linux - Newbie 5 12-07-2008 02:41 PM
Problem with gdm and a changed home directory Jykke Linux - Software 1 01-13-2008 07:12 AM
accidentally changed permissions on home folder Cinematography Linux - General 7 05-15-2005 05:32 AM
write a command whose modification time is changed in min suchi_s Programming 1 09-08-2004 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration