LinuxQuestions.org
Review your favorite Linux distribution.
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 10-10-2008, 09:16 AM   #1
ELECTRONICSFREAK
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.

Thanks
 
Old 10-10-2008, 09:24 AM   #2
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 71
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.
 
Old 10-10-2008, 10:05 AM   #3
ELECTRONICSFREAK
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, 11:27 AM   #4
jgallo
Member
 
Registered: Sep 2008
Posts: 39

Rep: Reputation: 15
you start a new thread
heheh

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


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


All times are GMT -5. The time now is 09:05 AM.

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