LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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: Slackware -current (multilib) with kernel 3.16.2
Posts: 1,566
Blog Entries: 13

Rep: Reputation: 178Reputation: 178
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: CentOS 6 (pre-systemd)
Posts: 1,691

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
-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: Slackware -current (multilib) with kernel 3.16.2
Posts: 1,566
Blog Entries: 13

Original Poster
Rep: Reputation: 178Reputation: 178
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
Senior Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 2,026

Rep: Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789Reputation: 789
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: Slackware -current (multilib) with kernel 3.16.2
Posts: 1,566
Blog Entries: 13

Original Poster
Rep: Reputation: 178Reputation: 178
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


All times are GMT -5. The time now is 03:39 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