Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-10-2008, 10:16 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 27

Rep: Reputation: 15
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.

Old 10-10-2008, 10:24 AM   #2
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
I think Ubuntu uses gksu to allow you to obtain root perms for GUI tasks. So,something like
gksu gedit file.txt
Alternatively, if using a command line editor you can do something like
sudo vi file.txt
You would probably rather use nano than vi, though, for editing.
Old 10-10-2008, 11:05 AM   #3
LQ Newbie
Registered: Jul 2008
Posts: 27

Original Poster
Rep: Reputation: 15
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".
Old 10-10-2008, 12:27 PM   #4
Registered: Sep 2008
Posts: 39

Rep: Reputation: 15
you start a new thread

Last edited by Tinkster; 10-30-2010 at 04:56 PM.


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
Edit privoxy files directly from the web location... Permission denied. RHLinuxGUY Linux - Networking 4 04-29-2009 09:00 PM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 07:59 AM
Changing file permission, How to edit a file? rainchild Linux - Newbie 8 01-14-2007 11:18 PM
Permission Denied when trying as "root" to edit xorg.conf d3g@ Linux - Newbie 4 09-07-2006 06:19 PM
How do I get permission to edit files? Virp00 Linux - Newbie 15 03-29-2005 01:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:30 AM.

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