Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 10-22-2006, 09:13 PM   #1
LQ Newbie
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Exclamation A normal user now has write permissions for the whole file system

In trying to change the permissions of some files I backed up as root back to the proper owner I seem to have accidentally gave them write permissions to the whole file system.

how do I fix this?


I dual boot Ubuntu and Win XP©.
Two IDE hard drives
XP on hda1 [ntfs] :
( now ) /media/Backup on hda2 [ext3]
/media/Storage on hdb1 [FAT32]
and the rest of my Linux partitions on hdb2 - 6.

So XP borks /media/storage by scrambling a directory. ( and I guess something else )
I run XP chkdsk and fix the offending directory.
I need to reinstall XP any way. ( it crashes every 30 min or so )
I decide to redo Ubuntu as well.
I reinstall XP. ( all goes good )
I boot the live CD, run the installer, and QTparted gives some kind of error about hdb and refuses to mount, edit or any thing.
After some trial & error I find that the option of erasing hdb will fix the problem. Oy...
I create /media/Backup
I mount /home
I copy my wife's and my own home directories to /media/Backup
Reinstall Ubuntu, recreate her user and mine .
Find out my back ups are owned by root, do a search find " do a chown -L -R user /dir/dir ( user being me or my wife and /dir being the dir to change ownership of )
I do this for her, now she has write permissions for everything.
( this is really bad because as even she puts she is " 'puter 'tupid " ( computer stupid ) )
I use a different method for my files that I can't remember right now, but they are fine.

I think that is about it.
Old 10-23-2006, 07:56 AM   #2
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
Hmm this is strange.. If you do a #chown -R userid:groupid /directory it will change everything from /drectory recursively... as to how it changed the whole filesystem when specifying the /dir argument im not sure.. if you did a '.' however - now that would be different
Im unsure how you could change permissions of root's files either - unless sudo worked i suppose.

Once you have changed the permissions of the entire filesystem i dont know that you can get them back to what they were (without manually doing it). Maybe you will need to restore your backup again ?
Old 10-23-2006, 09:32 AM   #3
LQ Newbie
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up I either fixed or skrewed it worse

I said the hell with it and chown'ed with -R -L the whole file system back to root:root then chown'ed with -R the user directories back to them.

Seems to work so far.

If/when it goes to crap I will just reinstall.


chown, permissions, ubuntu

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
New reiser partition. How can normal user write on it? pepeq Linux - Hardware 5 12-09-2004 06:20 PM
smbfs uid gid write as normal user exeon Linux - Networking 0 10-27-2004 03:47 PM
How can I do an automated Read/Write SMB mount for a normal user? molear Linux - Newbie 1 07-01-2004 02:45 PM
Cant read/write to second hard disk under normal user Nukem Linux - General 8 01-28-2004 07:03 AM
how can a normal user write into /mnt/win kevinqian Linux - General 1 10-31-2003 08:27 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:37 PM.

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