Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get access to edit the /srv folder and all of its contents on ubuntu 12? I need to edit some files for a server called airtime. I need read and write privileges in it.


share|improve this question

/srv is owned by root by default, therefore you need to acquire root privileges to edit it or to add files to it.

You can execute a command with root privileges by prepending sudo to it:

[timwolla@/srv]ls -al
total 8
drwxr-xr-x  2 root root 4096 Oct 17  2012 .
drwxr-xr-x 25 root root 4096 Mar 18 16:20 ..
[timwolla@/srv]mkdir test
mkdir: cannot create directory ‘test’: Permission denied
[timwolla@/srv]sudo mkdir test
[sudo] password for timwolla: 
[timwolla@/srv]ls -al
total 12
drwxr-xr-x  3 root root 4096 Mar 26 20:20 .
drwxr-xr-x 25 root root 4096 Mar 18 16:20 ..
drwxr-xr-x  2 root root 4096 Mar 26 20:20 test
share|improve this answer
is this command line only? Any way i can use the GUI for root/sudo privleges? – Cameron Tarbell Mar 27 '14 at 15:36
@CameronTarbell You can use gksudo to start a graphical program with root privileges. The file manager is called nautilus. – TimWolla Mar 27 '14 at 16:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.