LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-18-2003, 08:45 PM   #1
Melo
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?

Thanks
 
Old 08-18-2003, 09:19 PM   #2
Skyline
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, 04:29 AM   #3
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
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, 04:23 PM   #4
Melo
LQ Newbie
 
Registered: May 2003
Location: Texas
Distribution: 8
Posts: 19

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration