LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /fstab - Owner access in Mint 7 Gloria (https://www.linuxquestions.org/questions/linux-newbie-8/fstab-owner-access-in-mint-7-gloria-792826/)

Desdd57 03-03-2010 03:51 AM

/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

acid_kewpie 03-03-2010 03:53 AM

why not just edit it in vi and make the changes?

evo2 03-03-2010 04:00 AM

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.

Desdd57 03-03-2010 04:10 AM

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

Desdd57 03-03-2010 04:29 AM

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? :-)

acid_kewpie 03-03-2010 04:40 AM

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.

evo2 03-03-2010 04:49 AM

How about something like:
Code:

sudo cp /etc/fstab /etc/fstab.backup
sudo cp /home/me/custom/fstab /etc/fstab

Evo2.

Desdd57 03-04-2010 12:04 AM

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


All times are GMT -5. The time now is 10:29 AM.