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)

3
votes
2answers
162 views

Issue when sudo something after a hostname change

I was tired of my system's name so i decided to change it. I gksudo gedit /etc/hostname and changed my first and never touched computer name to a new one. Then now when i sudo something like sudo ...
1
vote
1answer
2k views

Mount samba share at login using startup script (not fstab)

Background I'm trying to automatically execute a command that mounts a password protected Samba share when my user logs in. The catch is, I share my laptop with another user, and I don't want the ...
1
vote
1answer
71 views

How can I as a root user manage folder owned by other users using ubuntu desktop?

I need to copy files/folder to a folder but that is owned by another user, infact a installed application by me. So how do I get the rights to copy files/folder to that folder ? I want to do it via ...
4
votes
3answers
14k views

Can't open Gedit as root

When I run sudo gedit /path/to/some/random/file I get the following error ** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax ...
2
votes
2answers
1k views

Editing Sudoers to avoid typing a password for iwconfig command [duplicate]

I wanted to follow this guide to avoid typing a password every time I want to use "sudo iwconfig" command http://ubuntuforums.org/showthread.php?t=1132821 I tried the steps with "apt-get" command ...
1
vote
2answers
483 views

Root user and Super User

How is being the root user different from being the super user? If it is different anyways, is there a way to use the shell as the root? Is there a root password for that? Is it different from the ...
0
votes
4answers
4k views

How to use Vlc with sudo privileges?

I'm trying to use Vlc with sudo but it doesn't work. This is the error: VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or privileged TCP ports you can use ...
1
vote
2answers
3k views

Vagrant Up and annoying NFS password asking

Sorry for the language mistakes I've made. I'm trying to prevent vagrant asking the password when it mounts shared folders by NFS: [server] Exporting NFS shared folders... Preparing to edit ...
0
votes
1answer
123 views

Enable password asterisks when run command sudo? [duplicate]

when I run sudo command , so when I mess up my password, I have to start over from scratch, is there a trick to enable password asterisks so I know how letter I have typed?
0
votes
1answer
630 views

Clam TK and sudo freshclam

I have clamtk! Should I set clamtk for manual or automatic updates? Clam says that if my computer is receiving automatic updates then I should set the wizard at automatic I have no idea if my ...
1
vote
0answers
408 views

cannot execute script with sudo no password

I would like to create a batch file that will connect via ssh to my ubuntu server and run a script. My batch file works by using plink, I can see that the call to my script is ran but then I'm asked ...
0
votes
1answer
67 views

The effect of putting sudo -i command in /etc/fstab

I have a computer (computer A) which only can be accessed by ssh from another computer (computer B) within internal network. ssh username@10.**.**.** FYI, I do not activate root account in computer ...
0
votes
1answer
139 views

Why do I need administrative privileges to use chsh?

I was working on a Ubuntu system where I did not have administrative privileges, and I couldn't change shells (from tcsh to bash) using chsh. I solved the problem writing in the .tcshrc to open bash. ...
0
votes
1answer
107 views

sudo nautilus vs su

As i have learnt that being a super-user in linux/ubuntu we can unlock those task which is being hide out from other user so to avoid messing with the files and directories.Now i want to know upto ...
4
votes
2answers
632 views

iwconfig doesn't report Link Quality unless run as sudo

I'm running Ubuntu 13.10 on a late 2013 Macbook Pro Retina (booted via Refind). My issue is that running iwconfig doesn't output Link Quality or Signal Level unless run as sudo. me:~$ sudo iwconfig ...
1
vote
1answer
621 views

Cannot install Spark IM 2.6.3, getting permission denied error even though I am root

I am trying to install Spark IM in my Ubuntun VM, however I am running into all kinds of problems. The steps I have taken so far were: Download the tar.gz file from the website Unpack it cd ...
0
votes
1answer
252 views

adding sudo permissions to NIS clienadding sudo permissions to NIS clients

I've configured a couple of ubuntu 12.04 servers with NFS and NIS like it was described in https://help.ubuntu.com/community/SettingUpNISHowTo and in ...
0
votes
1answer
184 views

Forever cannot be installed

While trying to install Forever using this command: sudo npm -g install forever I'm getting this error: npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: ...
2
votes
1answer
175 views

Strange terminal navigation when logged in as new user

I am not even sure how to ask this properly.. I am using EC2 Ubuntu 12.04 I added a new user sudo useradd -g admin admin sudo adduser admin sudo Changed shudders so I can use new user without ...
1
vote
1answer
523 views

vim colorschemes don't appear correct when using sudoedit

I've been trying to be a good little sysadmin and use sudoedit, instead of sudo vim, or sudo -i;vim, when making changes to root owned files (ex /etc/profile), but my vim colorscheme doesn't seem to ...
1
vote
1answer
342 views

“sudoing” strategy for python script on ubuntu

I'm creating a small router program (GTK frontend) in python for some of our less CLI savvy users. I've developed the glade front-end and able to connect the various signals. Now, I'm facing only one ...
1
vote
1answer
124 views

sudo instead of root sometimes asks for password

Ubuntu 13.7 I'm not set up as root and don't want to be. But sometimes /not always/ but sometimes when I try to run a sudo command, I'm asked for my password. I type in my user password, since I ...
1
vote
2answers
915 views

Xubuntu visudo sudoers edit not working

I have been trying to specify a script that I would like to run without being prompted for a password. After a number of google and stack searches and a number of different syntax changes, I still ...
2
votes
2answers
53 views

Independence between sudo and the instruction it receives as an argument

I don't understand why the directory dir1 isn't shown with the same colour. Although this may look unimportant, it seems to me that this is a violation of the so oftenly mentioned principle of ...
1
vote
1answer
5k views

How do I allow only one user to su to another account?

I have user-a and user-b on my box. How do I do a no-password su - user-b as user-a?
1
vote
0answers
93 views

How to allow local logins, after misconfiguring PAM in AD integration process

Aim: Create an R server that integrates into our Windows environment by setting up AD integration on an Ubuntu box Using: Ubuntu 12.04 LTS Following: ...
4
votes
1answer
14k views

Sudo command not found (su login not working)

I had a system crash and now my Ubuntu runs into low-graphics mode. All the fixes require running commands with sudo. When I try this I get sudo: command not found. When I try logging in with su - I ...
1
vote
1answer
3k views

Permission problem with SFTP in FileZilla

Recently, we installed Ubuntu Server on our servers this is very new for us. However, we tried to setup a apache2 server which did work. But the problem is that we can't configure apache and other ...
0
votes
0answers
68 views

How to make a command execuitable without root previlages? [duplicate]

I want to make some commands,such as ntpdate,shutdown etc, to execute without asking me for a password or without using "sudo" for "all users"(even normal users who have no sudo privileges) . I want ...
12
votes
5answers
70k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
0
votes
1answer
972 views

Sudo or gksu for launching Sublime text 2?

I am new to using Ubuntu 12.04 and noticed two different ways of launching Sublime Text 2 via Terminal window, first being sudo and the other being gksu. Upon using both I noticed it's launching ...
0
votes
1answer
47 views

I have a problem where sudo does not work can you help me?

Basically I have been following steps on this website to mount my hard-drive properly and now each time I try to follow the first step it says: sudo: effective uid is not 0, is sudo installed setuid ...
1
vote
2answers
726 views

Sudo does not recognize my password anymore

The problem is happening on a remote server, so everything is done through ssh. I can login with my key, no problem here. I can change my password at will with passwd (which I believe shows that it's ...
0
votes
3answers
266 views

making nano always run as sudo by default

my problem is that i keep forgetting to write sudo before every time i use nano, and eventually what happens is i work on a file for a while and don't have permissions. i remember hearing somewhere ...
0
votes
1answer
23 views

Need Help regarding Finding tools

When I type command find / -name ??.conf the output is a lot of files such as : find : /home/simmer/local/share/gvfs.metadata : Permission Denied Don't get the desired result, And if I use the ...
3
votes
1answer
371 views

Accidentally deleted 'sudo'

I accidentally deleted the /usr/bin/sudo file. How can I restore it? I have found a thread on ubuntuforums, but it seems to be not solved.
2
votes
3answers
917 views

Run a specific sudo command without a password in Ubuntu 13.10

I would like to run vagrant without being prompted for a password. As this post suggests, I used visudo to add the following line to my sudoers file. john-moz ALL=(ALL) NOPASSWD: /usr/bin/vagrant ...
1
vote
1answer
1k views

How solve “sudo: must be setuid root” on Joyent server

I have a server Ubuntu 12.04 LTS on joyent . Mistakenly I have changed the /user/* folders permission to 775. After this I cannot able to run any sudo command. Rebooting the system in recovery mode ...
0
votes
1answer
324 views

The shell/terminal does not allow/show my password [duplicate]

I am trying to install gfortran from a shell/terminal, I write sudo apt-get install gfortran and then in the next line appears sudo password from romulo. But when I try to write the password the ...
1
vote
0answers
27 views

I changed my password to none and now i cant authenticate nor even cant do sudo? [duplicate]

I have admin rights. Could there be a way to change back my pass. I dont even know whats my password is because I already set it to "none' now its very hard to install apps. Need help please ! Fast.
1
vote
1answer
458 views

Opening Sublime Text 2 from Terminal Problems

When I run the command sudo sublime from my terminal, it opens the program but will not allow me to run any other commands in my terminal until I close sublime text. This doesn't work because I'm ...
0
votes
1answer
43 views

BrokenCount <0 broken packages [duplicate]

So,ive have had problems with my packages and software center for sometime. I can't download any packages, and can't open software center obviously. It says that i have Brokencount <0. How can i ...
1
vote
1answer
35 views

Ubuntu Button Click Authentication

After upgrading from Windows to Ubuntu, I really like the operating system. The only point I find that is missing is the Windows functionnality to authenticate administrator permissions only by ...
0
votes
3answers
262 views

how to make /usr/lib owned by root again [duplicate]

I chowned -R username /usr/lib and now i cannot sudo or do any thing really due to sudoers.so belonging to username. How do i fix this and make /usr/lib owned by root again?
1
vote
3answers
184 views

How to use the sudo command [duplicate]

When I want to install a package with the sudo command I am asked to type in my password, but nothing shows up when I do.
3
votes
2answers
3k views

history doesn't display as sudo user

On a few of my ubuntu installations, when I run sudo su and become sudo user, I can type history and view a list of commands run as sudo user. However, on my one ubuntu installation, for some reason ...
0
votes
2answers
793 views

Software Center prompts password of another user

I have a krb5-ldap user in an "administrators" which is added to sudoers list as follows: %administrators ALL=(ALL) ALL Now that works fine for all sudo operations. But when that user wants to ...
1
vote
1answer
2k views

Adduser: group sudo does not exist

I am able to login to my account but can't do anything related to superuser now. Updates, sharing, sudo and all things say authentication failed. I tried to correct that by going in recovery mode and ...
0
votes
3answers
917 views

sudo (not I) remember my password [closed]

Trying to upgrade my ubuntu. I haven't used it in a while and want to upgrade it to 13.10 I understand I have to go from 12.04 to 12.10 to 13.04 to 13.10. But when I am in the terminal and enter ...
3
votes
1answer
5k views

“user is not in the sudoers file”, how to read the incident reports?

Many times I got warning/notice while accidentally tried to do some privileged action using my non-root account like below, gulu@workpc:~$ sudo apt-get update [sudo] password for gulu: gulu is not ...