LinuxQuestions.org
Register a domain and help support LQ
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, 01:28 PM   #1
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,501
Blog Entries: 12

Rep: Reputation: 155Reputation: 155
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 01:30 PM.
 
Old 03-15-2014, 04:07 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,413

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
-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, 06:21 PM   #3
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,501
Blog Entries: 12

Original Poster
Rep: Reputation: 155Reputation: 155
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, 06:41 PM   #4
astrogeek
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,676

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
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 06:55 PM.
 
Old 03-15-2014, 11:11 PM   #5
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Slackware -current (multilib) with kernel 3.15.5
Posts: 1,501
Blog Entries: 12

Original Poster
Rep: Reputation: 155Reputation: 155
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 08:38 AM
cannot write $(HOME).dmrc file home is on a seperate partition Person_1873 Linux - Newbie 5 12-07-2008 01:41 PM
Problem with gdm and a changed home directory Jykke Linux - Software 1 01-13-2008 06:12 AM
accidentally changed permissions on home folder Cinematography Linux - General 7 05-15-2005 04:32 AM
write a command whose modification time is changed in min suchi_s Programming 1 09-08-2004 09:34 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration