LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission Dilemma trying to edit (https://www.linuxquestions.org/questions/linux-newbie-8/permission-dilemma-trying-to-edit-675497/)

ELECTRONICSFREAK 10-10-2008 09:16 AM

Permission Dilemma trying to edit
 
I am trying to edit the config file for samba, but I get a message saying I do not have permission to do so. I have also read logging in as root is a big no no and its nearly impossible to do so it seems on ubuntu anyway. Ubuntu is the version of linux im using. How can I get permission to edit the config file or do administrative things without logging in as root? I know you can use sudo and have permission to do many of things, but I am not sure how I can edit the contents of a file with that? I am new to linux.

Thanks

shadowsnipes 10-10-2008 09:24 AM

I think Ubuntu uses gksu to allow you to obtain root perms for GUI tasks. So,something like
Code:

gksu gedit file.txt
Alternatively, if using a command line editor you can do something like
Code:

sudo vi file.txt
You would probably rather use nano than vi, though, for editing.

ELECTRONICSFREAK 10-10-2008 10:05 AM

Thanks. One other question now, how do I rename my hard drives so that both do not say "new volume". I have 2 500GB drives for storage that it automatically named "new volume".

jgallo 10-10-2008 11:27 AM

you start a new thread
heheh :)


All times are GMT -5. The time now is 08:05 PM.