LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2010, 04:51 AM   #1
Desdd57
Member
 
Registered: Feb 2010
Location: Brisbane - Australia
Distribution: Ubuntu 10,4
Posts: 151

Rep: Reputation: 19
/fstab - Owner access in Mint 7 Gloria


I need to replace my /etc/fstab/ file with another one. But when I try to access I am told I am not the owner.

I have tried (in a command prompt window) sudo NameOfFileManager but I only have a 'file system' generated by (what would be the) START button - if I was in Windows. So I don't know what file manager Mint 7 uses.

The reason for the change of file is that I had another one written that would give me access to my NTSF drives that windows uses C & D. Once I get access to these and then get my Dodo USB wireless working, I will almost be free of Windows - all bar my xl work
 
Old 03-03-2010, 04:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
why not just edit it in vi and make the changes?
 
1 members found this post helpful.
Old 03-03-2010, 05:00 AM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
You should not be doing this type of system administration using a file manager. Learn how to use the "mv" (move) and "cp" (copy) commands. Or alternativly as pointed out by acid_kewpie, use a text editor to modify the file.

Evo2.
 
1 members found this post helpful.
Old 03-03-2010, 05:10 AM   #4
Desdd57
Member
 
Registered: Feb 2010
Location: Brisbane - Australia
Distribution: Ubuntu 10,4
Posts: 151

Original Poster
Rep: Reputation: 19
Worth a try

Thanks guys, and yes evo2 I have thrown myself in at the deep end a bit.

Thing is thought it would not let me do a name change or a move - I figured it wouldn't let me edit either. But it's worth a try!

Reason I wanted a name change was to preserve the original file in case as u infer, I tread where angels fear to. But what matters I can always re-install. I have to shut down windows internet & Windows now and open Mint and try - so I';; be out for 15 min or so

Thanks for both your responses

Des
 
Old 03-03-2010, 05:29 AM   #5
Desdd57
Member
 
Registered: Feb 2010
Location: Brisbane - Australia
Distribution: Ubuntu 10,4
Posts: 151

Original Poster
Rep: Reputation: 19
Permissions

No I;m afraid I don' have the permissions to make any changes, I am locked out? so it comes down to a matter of admin rights. This has to be (it seems) resolved first.

Got any thoughts? :-)
 
Old 03-03-2010, 05:40 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
if you run "sudo vi /etc/fstab" then it'll let you edit it as root, assuming sudo is functional. if not, running "su -" will let you become root, and then a "vi /etc/fstab" will get you editing no problem. There is NO lockout.
 
1 members found this post helpful.
Old 03-03-2010, 05:49 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
How about something like:
Code:
sudo cp /etc/fstab /etc/fstab.backup
sudo cp /home/me/custom/fstab /etc/fstab
Evo2.
 
1 members found this post helpful.
Old 03-04-2010, 01:04 AM   #8
Desdd57
Member
 
Registered: Feb 2010
Location: Brisbane - Australia
Distribution: Ubuntu 10,4
Posts: 151

Original Poster
Rep: Reputation: 19
thanks

Sorry I have not had chance to get back to this discussion, am moving camp next week, and all has to be ready. So I want to try your last 2 and will get back to it ASAP

Des

Thanks again for your responses - I appreciate them - and they will get tried
 
  


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
installing irfanview on linux mint 7 gloria bamagirl485 Linux - Newbie 9 01-31-2010 11:57 PM
GRUB, Windows 7 and Mint Gloria TheStarLion Linux Mint 12 12-30-2009 06:41 PM
Huawei e1690 on Mint Gloria 9.04 kaplis Linux - Networking 0 12-10-2009 09:32 AM
No Video with Mint Gloria on Acer 5000 GzMan Linux - Newbie 2 10-03-2009 06:09 PM
LXer: The Perfect Desktop - Linux Mint 7 (Gloria) LXer Syndicated Linux News 0 05-31-2009 11:11 AM


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