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)

0
votes
0answers
16 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
10 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
36 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
16 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
20 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
11 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
41 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
25 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
42 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
41 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
27 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
31 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
20 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
52 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 ...
0
votes
0answers
21 views

Can't install software through USC or open synaptic even though only user

I am running Xubuntu 12.04 LTS on my Toshiba Chromebook 2 and it seems I have been removed from the admin list, even though I am the only user on my device, ChromeOS and Ubutntu. I see proof of this ...
1
vote
1answer
30 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
123 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
53 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
14 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
41 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
61 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
41 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
15 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
12 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
31 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
28 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
38 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
14 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
17 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
15 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
26 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
40 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
43 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
20 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 ...
-4
votes
0answers
39 views

OK 40th or so unbuntu install!! Why sudo apt-get install fail2ban not work?

r-4-w@R-A-R:~$ sudo apt-get install gufw [sudo] password for r-4-w: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gufw ...
0
votes
0answers
21 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
20 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
18 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
44 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
65 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
38 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
36 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
16 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
67 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 ...
0
votes
1answer
34 views

Shutdown privileges problem

I have found that when I click the shutdown button when logged into a normal user account that once it has terminated all running processes and it says something about a modem shutting down, it can ...
1
vote
2answers
36 views

Undo the “sudo” within a script [duplicate]

Is there any way to undo the sudo within the script? like.. sudo ./script.sh commands 1,2,3,4,5 with sudo rights commands 6,7,8,9 without sudo rights
0
votes
0answers
41 views

sudo : tty not found

This has been a very recent problem. Every time I log into my user session, a dialog box pops up saying: sudo: tty not found and no askpass program specified It also says that the user session is ...
0
votes
0answers
20 views

How is the UID of a user passed to sudo, eg in a “sudo mount…” command?

When I runsudo mount -t nfs -o udp,vers=3,soft,intr,rsize=8192,wsize=8192 nas:/nfs/shares/kevin /mnt/nas/ I know that to be successful my UID must match the UID of the owner of the exported filesystem ...
2
votes
1answer
35 views

Filemanager that asks for sudo rights when it needs it [duplicate]

On my Mac I can copy files using the Finder, and if the destination folder has a different owner, a window pops up and asks for credentials. On Ubuntu or Linux Mint I don't see anything like that. ...