Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

learn more… | top users | synonyms (1)

2
votes
2answers
698 views

Can't access any functions after chown command

I am not being to access any functions in my desktop and I don't have an OS besides Ubuntu and I am new to Ubuntu. I think I rebooted my computer thinking that Google Chrome crashed. I opened Google ...
1
vote
1answer
11k views

How do I enable a user to sudo without password?

I have a php script with this: <?php #echo exec('whoami'); $output = shell_exec('bash /usr/local/svn/bash_repo/make-live'); echo "$output"; ?> The make-live script contains this: ...
6
votes
3answers
941 views

Why is this bypassing the SUDO password?

I have a bash script I am using to automate a SVN checkout. The contents of the file were: #!/bin/bash cd /var/www-cake sudo svn checkout file:///usr/local/svn/bash_repo/repo/ Then when I double ...
0
votes
3answers
522 views

Security problem with sudo su?

By typing sudo su, any sudoer can go into the root prompt & thus change the root password! Then what is the use of having a root & then the sudoers , because now sudoers can interfere with ...
8
votes
1answer
521 views

For what duration is sudo_root in “don't-prompt-for-password” mode?

The first time a user enters sudo foo, sudo_root prompts for the password. For a certain duration after that, sudo_root doesn't prompt for a password for any subsequent sudo foo's in that terminal ...
12
votes
4answers
6k views

How to prevent system applications (like the Software Center) from asking for password?

I'd like Software Center, Update Manager and some other system management applications to work without asking for password (like sudo does if configured with NOPASSWD) but only asking for a ...
9
votes
6answers
6k views

Disabling shutdown command for all users, even root - consequences?

I would like to disable the shutdown command for all users, even root, on an Ubuntu Server installation. The reason I want to do this is to ensure that I don't get into the habit of shutting down the ...
1
vote
0answers
403 views

Ubuntu Root user [duplicate]

Possible Duplicate: How to know my root password? Hi folks, I have been getting hands on Ubuntu and really liking it. Though someone of the terms really confuse me. One such confusion is: ...
11
votes
3answers
15k views

Save an edited file in nano, but no permissions

I edited a file in /etc/ that I want to save, but forgot to open it using sudo. I remember there was a command to save such a file in vi, and want to know if there is any such way to do it in nano? ...
0
votes
1answer
199 views

update-manager doesn't request PW - just NOOPs

I upgraded to Maverick and now I never get the password dialog that 10.04 had for installing packages - it just NOOPs from the GUI. Ran update-manager with user privileges from terminal and no error ...
17
votes
3answers
5k views

How to cancel the currently-applied remaining sudo time-out?

When I've just run sudo, and don't want it to remain active for the normal duration of its time-out, how can I cancel that remaining active time-out? sudo -k kills it for the current terminal ...
21
votes
4answers
14k views

Is the difference between sudo and gksu the same as the difference between sudo -i and sudo -s?

Is the difference between sudo cmd and gksu cmd, the same as the difference between starting a shell with sudo -i and sudo -s? ... or put another way, Is sudo cmd the same as sudo -i cmd and gksu ...
74
votes
8answers
36k views

What is the difference between “gksudo nautilus” and “sudo nautilus”?

I've been using gksudo nautilus and sudo nautilus through Alt+F2. What's the difference? They look very similar!
11
votes
2answers
404 views

How come you don't need sudo privileges to update the packages list in the 10.10 Update Manager?

I have noticed that when I press the "Check" button from the Update Manager in Maverick, it starts directly downloading the information on packages without asking me my password (sudo verification) ...
5
votes
4answers
9k views

How do i transfer files over ssh after sudo?

I have access to a box over ssh and there are some files i'd like to transfer to another machine, but those are only accessible under another account so if i ssh with 1, then sudo 2 i can browse them ...
2
votes
1answer
184 views

“Key” Panel Indicator Missing

I'm hoping I'm not imagining things, but I'm fairly sure that I saw a clean 10.04 install with a key icon displayed in the menu bar. I believe it appeared when sudo was active for updating, etc. I ...
480
votes
6answers
1.5m views

How can I add a new user as sudoer using the command line?

After I add a user using adduser, I can't see it via System->Administration->Users and Groups unless I logout and then login again. Is that normal? Also, can I set a newly added user as a ...
16
votes
9answers
22k views

How to run an Application as another user?

I use krusader for file management stuff. the problem is that apache's DocumentRoot should be under chown www-data:www-data /path/to/www. so using krusader (which is run under my account) I've not ...
3
votes
1answer
491 views

GUI sudo not working?

I accidentally screwed up the groups for my main user by doing sudo usermod -G blah instead of sudo usermod -a -G blah. On realising this, I immediately rebooted into single user mode and added the ...
7
votes
3answers
5k views

How to run a Desktop graphical application just once under sudo?

For example, I'm trying to run Archive Manager from Ubuntu Desktop (10.04) under sudo otherwise it won't let me extract a Software Development Kit into /usr/local Update: I don't want sudo to be a ...
112
votes
5answers
255k views

How do I add a user to the “sudo” group?

In /etc/sudoers I see this: # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it ...
4
votes
2answers
594 views

Nautilus automatically browses as root

I used gksudo nautilus (not through the terminal but through the 'Open With' command) for some copy & paste stuff that requires root access. But now whenever I open the file browser (Nautilus) to ...
15
votes
2answers
3k views

Why do I need root privileges to umount a drive at the command line, but not in nautilus? How to change?

When I insert a thumb drive, media card, or USB hard drive, to unmount it via the command line, I need to use sudo umount /media/the_device But, I can unmount the device in a file manager like ...