Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-18-2003, 09:45 PM   #1
LQ Newbie
Registered: May 2003
Location: Texas
Distribution: 8
Posts: 19

Rep: Reputation: 0
Unhappy file permissions

I have Mandrake 9.0 loaded on my - hope to be router - and would like to make some changes to some of the files.
I logged in (setup) as 'root' and thought I would have admin privilages but apparently not.

When I attempt to save a file after making a change I get a message something like 'Cannot create backup file' and then it says it cannot save the file because I don't have permission.

What/where does one change to grant themselves 'admin' or full permissions?

Old 08-18-2003, 10:19 PM   #2
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You can change owner ship and permissions with a combination of

chown and chmod

chown username path_to_file

changes ownership

chmod 777 path_to_file

gives full permissions to all 3 user levels
Old 08-19-2003, 05:29 AM   #3
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
you shouldn't need to chmod 777 the files, in fact you shouldn't, for security reasons. If you've logged in as root, then you should have full rwx permission for everything.
If you want to grant another user root permission, look into sudo.
I'm not sure why you can't save files, I've never seen that error before. Does it happen all of the time, or just with one specific file? Try creating a dummy file under /root called dummy, with some text using some text editor, and see if that'll work. Then get back to us
Old 08-20-2003, 05:23 PM   #4
LQ Newbie
Registered: May 2003
Location: Texas
Distribution: 8
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks.........your info helped a lot.


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 06:35 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 05:08 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 07:03 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 05:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:05 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
Open Source Consulting | Domain Registration