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
1answer
55 views

Deleting user from sudoers [duplicate]

Hi I executed this command sudo adduser username sudo and am wondering how do I take that username out from being able to execute sudo. I checked the sudoers file but the username that I added thru ...
1
vote
1answer
34 views

Program connects via USB only if called with sudo

I have downloaded JLink package and unpacked it to /home/mkru/ARM/JLink_Linux_V498a_x86_64. Then I have added this path to my PATH variable. When I try to execute JLinkExe I get the following error: ...
0
votes
0answers
39 views

How to build libgee (“undefined reference to 'g_get_num_processors'”)?

I am not able to install libgee. When I tried running on the command line sudo apt-get install libgee it said libgee is already in its latest version, when it is actually is not in its latest ...
0
votes
0answers
51 views

Allow sudo in default guest account

I am trying to run Microsoft Office for some public workstations. I have added the following entry to my sudoers file: %win ALL=(windows) NOPASSWD: /usr/share/playonlinux/ /home/windows/.PlayOnLinux ...
3
votes
1answer
740 views

sudo: can't open /etc/sudoers: Permission denied [duplicate]

sudo from a standard user works fine, but when I try to use it from root it returns this error: sudo: can't open /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting ...
1
vote
1answer
46 views

mv: cannot move ‘/etc/default/keyboard.tmp’ to ‘/etc/default/keyboard’: Operation not permitted

I run: sudo mv /etc/default/keyboard.tmp /etc/default/keyboard I get this error: mv: cannot move ‘/etc/default/keyboard.tmp’ to ‘/etc/default/keyboard’: Operation not permitted How to fix this ? ...
0
votes
1answer
76 views

Allow nopasswd sudo for specific user

I am trying to set the scp as a specific user with NOPASSWD. alice ALL = (bob:ALL) NOPASSWD: /usr/bin/scp As I did understand from this question. However when I save using my visudo I still can't ...
0
votes
0answers
42 views

sudo apt-get update cannot fetch the server why?

I use Ubuntu 14.04.2 LTS (GNU/Linux 3.14.33-ti-r50 armv7l) in my device.When I try sudo apt-get update I see this error below: Err http://ports.ubuntu.com trusty InRelease W: Failed to fetch ...
0
votes
1answer
98 views

Terminal error output RE: editing .conf file in Xbuntu [owned by uid 1000 istead of 0]

Was curious as to the terminal error output from running sudo Kate. I read in a forum that directed me to open my notepad using gksudo. Realizing that this had not been installed I just went ahead and ...
0
votes
1answer
79 views

unable to install vim

I am using Ubuntu 12.04 and when I try installing the vim editor with: sudo apt-get update sudo apt-get install vim I receive the error: THE PACKAGE VIM HAS NO INSTALLATION CANDIDATE. I have even ...
0
votes
1answer
53 views

Make gksu ask for password in terminal

If I needed to run a graphical command as root, I would use: username@HENRY-PC:~$ sudo gedit [sudo] password for username: But this is apparently discouraged, because any files created for the ...
0
votes
0answers
39 views

Ubuntu server wont let me change to root or add my default user to sudoers

So I'm trying to learn how to set up a headless server and I got everything installed I made a root password and that wont work with su and then I try to sudo with my default log in and it wont let me ...
0
votes
0answers
23 views

Error when attempting to update Ubuntu 14.04

I am using Ubuntu 14.04.When I attempt to update: sudo apt-get install -f I see this error: kg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . ...
1
vote
2answers
83 views

Root user not having permissions

My root user is not working how he should. sudo works perfectly but if I login with root, autocomplete does not work for all commands which need root permission and I couldn't execute a file owned by ...
1
vote
0answers
96 views

$password with ssh chpasswd

I've a problem with "ssh chpasswd" .. I need to implement the "$password" of register.. Eg.. I've this code.. echo $ssh->exec("sudo sh -c 'echo $user:test | chpasswd'"); When the script is ...
-1
votes
1answer
90 views

I can su root, but can not log in as root? [duplicate]

Usually, it is the other way around...so this might be the first from what I researched. lets say i log on to my server venus as willc86. When I su root, it lets me in. however, lets say I ssh venus ...
0
votes
0answers
42 views

Administrative Account [duplicate]

My soon to be daughter-in-law has a laptop with ubuntu installed. Her account is not a standard account but an administrative account. She also has the automatic log-in. Trying to help out I told ...
1
vote
0answers
52 views

Sudo is not owned by root on a fresh install of 14.04 on a VPS. Huh?

Sudo is not owned by root on a fresh install of 14.04 on a VPS. Not familiar with this stuff. So why, what does it all mean and what can I do about it? Steps are: From the VPS management web pages ...
1
vote
2answers
46 views

how to prevent sudo from executing a non root file?

I want to prevent sudo from executing files not owned by root. so, to allow sudo run such file, I want the file to be: chown root:root filename chmod go-w filename Is it possible to limit sudo ...
0
votes
1answer
46 views

why is sudo not working with exported path?

If not sure if this is close to (or even a duplicate of) Why does sudo not add root's PATH with Ubuntu 12.04?, I'm still posting this question because I didn't understand anything from there, if ...
1
vote
3answers
62 views

Why is sudo by default asking for the password of the user that ran it?

I'm wondering why does sudo actually NEED the password, when the user has already logged in? The fact that the user has managed to run sudo means that the user has passed authentication and is ...
1
vote
1answer
161 views

Init file in init.d calls using sudo in script.sh give error sudo: no tty present and no askpass program specified

I an trying to make a script that launches on boot to connect to my personal VPN. I have an init file: /etc/init.d/vpnstartup which calls my vpnon.sh script on boot with the commands: case "$1" in ...
1
vote
1answer
188 views

Is sudo killall -u lightdm safe?

I realized that my server has many processes runned by lightdm: Can i killall processes from lightdm? Is sudo killall -u lightdm safe?
1
vote
1answer
529 views

Running Composer without using sudo (tried changed owner and permissions)

Every time I run composer (e.g., sudo composer install, sudo composer self-update etc.) I need to run this with sudo as the owner of the file is root. However every time I use the composer with sudo ...
0
votes
0answers
16 views

Why is the samba configuration file read only? [duplicate]

I am using samba on Ubuntu server to share files among my computers. I got done writing the configuration file, and I typed :wq to save the file. When I went to save and exit, I got the following ...
0
votes
2answers
49 views

Broken Sudo and no write privilige on file system

I had upgraded ubuntu12.04 to ubuntu14.04 and it didn't boot unless I edited this line in the grub menu linux ${rel-dirname}/${basename} root=${lINUX_HOST_DEVICE} loop=${loop_file_relative} ro ...
0
votes
0answers
21 views

I cannot install any application [duplicate]

I get the following error in my command window kittu@kittu-PC:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done Correcting ...
1
vote
1answer
176 views

cannot use sudo after using sudo passwd root

My System problem detected when I tried sudo passwd root in my ubuntu. I changed my root password by using the below command. sudo passwd root Now my system password changed, after this i could ...
-3
votes
1answer
46 views

Why do liinux instructions almost never include sudo even when it is obviously necessary? [closed]

Why do Linux instructions almost never include sudo even when it is obviously necessary? You see it a lot, for example, you will see something like: "Edit /etc/hosts by doing $nano /etc/hosts and ...
0
votes
0answers
30 views

How to change a read-only file System

My roommates 2011 Macbook Pro died today. I made a flashbootable version of ubuntu and booted from it on his mac. I can move around his drive's directories, and while trying to solve this problem I ...
0
votes
1answer
32 views

Easing entry of sudo password for remote hosts?

I'm logging on to remote hosts via SSH to do server admin. The login uses a cert but I login as a normal user (ssh -p $PORT $USER@$HOST) and use sudo to run commands. It's a pain to have to enter the ...
0
votes
1answer
90 views

How to move folder from desktop to /lib/firmware?

I need to copy this b43 folder so i can get the broadcom firmware on Ubuntu 10.10 (which is the version I am running on). I've been looking around forever and have been trying different command lines ...
0
votes
0answers
177 views

XDG_Runtime_dir Variable not set

Per this link: http://superuser.com/questions/269407/apt-get-behind-proxy-on-virtualbox-ubuntu/506066#506066 I update my ~/.bashrc file with export http_proxy="<my proxy>" export ...
0
votes
2answers
70 views

Terminal window [duplicate]

New to Ubuntu 14.04. How do I get to a terminal window? Reason for question: I am wanting to do installs and workarounds with issues to do with DVDs and turning the music off when I close the music ...
0
votes
0answers
22 views

How does the system interprets sudoers file when there are two lines for the same user?

I have a system with a user already added to sudoers file with username ALL=(ALL:ALL) ALL Now I want to allow username to run a single script without asking for sudo password (cron job). This ...
0
votes
1answer
29 views

Why can I not add more secondary groups?

I make a group called "teamspeak" and I would then like to be a part of that group, so I use sudo usermod -a -G teamspeak xdrosenheim as it is explained here and in the man usermod. I then do id ...
0
votes
1answer
36 views

Write Nginx Config as Unprivileged User

I have a deployment script that gets executed by an unprivileged deploy user. To fully automate things, though, I have to write a web server configuration file to /etc/nginx/sites-available and ...
2
votes
1answer
138 views

“apt-get install wget” installs wget with 000 permissions

I need to install wget and so I used sudo apt-get install wget, and it did, in fact, install it to /usr/bin/wget, but the permissions are all wrong (other lines for context): -rwxr-xr-x 1 root ...
0
votes
1answer
51 views

can't type my password in terminal [duplicate]

I am trying to install torrent, so I typed some commands like: sudo apt-get install libssl0.9.8:i386 after this command: [sudo] password for shiddhant: here is the problem comes, the cursor was ...
0
votes
2answers
88 views

No sudo or root access anymore [duplicate]

I'm afraid I locked myself out of the sudo/root options. The one account that had sudo rights now reports that it doesn't have these anymore. How can I restore this? Do I need to use a live stick?
2
votes
1answer
30 views

Can't edit plugins/sudoers/ins_*.h

I am trying to edit the list of insults in Ubuntu which, as described here, are located in plugins/sudoers/ins_*.h. I have tried: sudo visudo -f /plugins/sudoers/ins_*.h which should edit that ...
0
votes
0answers
24 views

How to run an alias command with sudo [duplicate]

I created an alias called runmc that allows me to start up a java program. But I noticed that when I type in "sudo runmc" (It needs root access to work properly.), it will display "runmc: command not ...
1
vote
1answer
28 views

Program accessible only to super user

I installed TeXLive through the .iso file provided in the website. To check the installation I tried tex --version and it returned something like The program 'tex' is currently not installed. You can ...
0
votes
0answers
20 views

We use sudo so i assume there is no SU passwoird or is it random? How tough is it if it exists? [duplicate]

We use sudo su. I assume there is no root password and is default? How tough is it if password exists?
1
vote
1answer
104 views

how to create admin account as a duplicate root account for telnet and disable root login over network?

I've been searching for the answer to this but all I find is "It doesn't work". I am a new, yes. I am still a student and i still learn about it. I am happy to break my OS and format it many times if ...
1
vote
1answer
303 views

Ubuntu Sudo Command not working

I mistakenly excuted: $ sudo chmod -R 777 /* I can not run sudo any more: I have tried changing the permissions with recovery mode but when I log in back into my account sudo is not still working. ...
0
votes
1answer
50 views

Problem with sudo via ssh

I'm using the following script to execute a update script on a certain number of servers in my network. Here is the part, which I think that is relevant. ### Actual Work ### if [[ $manual == 1 ]]; ...
0
votes
1answer
68 views

How is the default user given sudo access without being listed in sudoers?

I have a question about command sudo. Basically, you know, sudo allows any permitted users who enrolled in the /etc/sudoers to perform some commands specified in it. At this point, I wonder how my ...
0
votes
0answers
24 views

Can i use “gksu” to became root for CLI operation?

I don't care if this is unsafe, because i'm only doing it as a programming exercise, but that's what i want to do: I want to create a C program that, with the "system" command, will call dpkg and ...
0
votes
1answer
114 views

What is the reason for /etc/sudoers near line 23 error?

I fix that /etc/sudoers near line 23 error by using pkexec visudo command. But I don't know the reason. Can any one tell me the reason? And how to prevent these type of error in future? My File Like ...