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

How we can copy one file from one server to other in cron

Can anybody let me know how we can copy a file from one server to another in a cron. I know about scp but how we use it in a cron, since we need to pass the password. Edited I found this link Expect ...
6
votes
2answers
350 views

Sudo commands are run without entering the root password, how to stop this?

I haven't edited my sudoers, but I don't have to enter the password when running a sudo command line in the terminal. I can run any sudo command without entering the password, how can I stop this ?
1
vote
1answer
476 views

Authenticating error with ubuntu 14.04 LTS

< Problem: Just as I upgraded my ubuntu 13.10 to 14.04 LTS. I couldn't pass keyring and bash authentication. I can login in recovery mood for both root and my account, but that's not the case in ...
1
vote
0answers
27 views

How to give groups and users different permissions.

I have an assignment whereby I am asked to create 5 user accounts in Ubuntu and then create 3 groups for them to belong to. This part I did just fine. There are now 5 user accounts in my Ubuntu OS ...
0
votes
1answer
101 views

Correct permissions for sudo LAMP /var/www directory

I am trying to set permissions with sudo 775 - R /var/www/ on all folders and all files in the www folder of lamp for sudo user. Is this the correct way to set up the system?
1
vote
1answer
60 views

What does the symbol % in '%sudo ALL=(ALL:ALL) ALL' mean?

What does the symbol % in the following statement mean: # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL Is it the same to write as: sudo ALL=(ALL:ALL) ALL
0
votes
1answer
539 views

sudo: ruby: command not found after ssh

I'm working with ec2 instances and was trying to execute a ruby script on another instance after ssh to that instance. I have a ruby script which updates configuration files, so i need to run that ...
-3
votes
1answer
70 views

Cannot use sudo [closed]

I am trying to install unity tweak, and i am having this problem that when I type in the terminal: sudo apt-get repository unity-lens-music unity-lens-photo unity-lens-video in the terminal it ask ...
2
votes
1answer
510 views

sudo: unknown uid xxxxx: who are you?

I was using ssh and trying to upgrade a system from Ubuntu 10.04 to 12.04. The connection had an issue so I had to login again to finish the upgrade. After running sudo dpkg --configure -a that was ...
0
votes
1answer
235 views

How to make sudoreplay work?

I recently discovered sudoreplay whose manpage says that it replays sudo session logs. But I am not sure how do I make it work. For whatever little commands I ran it kept on saying that ...
0
votes
0answers
635 views

passwd : Authentication Token Manipulation Error

I couldn't use the command mount -rw -o remount / . This command asks for sudo password and then when i typed my password, it shows Your password has expired. It is almost a deadlock now. Somebody ...
0
votes
2answers
84 views

Password-less Ubuntu install?

When you run Ubuntu as a live boot you are able to install programs etc. without a password, but when you have installed it you have to choose a password and you have to put it in everytime you want ...
1
vote
1answer
100 views

Why is 'sudo bash' a bad idea? [duplicate]

Anyone want to comment on sudo bash in comparison to sudo su and sudo -i? I know sudo -i is the preferred because "environment". I've gotten into the bad habit from years ago when I was a kid in a ...
0
votes
1answer
90 views

Getting permission denied error

I have written one bash script and it is run on the background, inside this script I have use the following command: sshpass -p prakash123 ssh -t -p $1 prakash@localhost './update_script.sh > ...
0
votes
0answers
53 views

/etc/sudoers.d: Too many open files during npm install

When I ran npm install the first time, it suddenly slowed down my system to a crawl. Moving the cursor would take about 30 seconds to register on screen. Evenually NPM finished with a failure and ...
1
vote
1answer
42 views

problem in netstat

I tried to check configured ports from hadoop user as, sudo netstat -p1ten | grep java But, I am getting result as, [sudo] password for hadoopz: hadoopz is not in the sudoers file. This incident ...
15
votes
2answers
5k views

Why don't I have a password for “su”? Problems with “sudo”

I have installed Ubuntu using the GUI, giving myself a password and everything. I do not intricately remember the process. However, what worries me is that I don't know the following password: $ su ...
0
votes
0answers
53 views

faillog command doesn't work for all users

I set faillog to lock my users after 3 login attempt failures, but it works only for users belong to "sudo group" I searched the faillog(8) man page for ubuntu 13.04 in http://manpages.ubuntu.com , ...
0
votes
1answer
193 views

`sudo` asks for password even when I have no password set?

I removed the password from my account using the "User Accounts" window and then on running sudo, it prompted me for a password, even when i didn't have one. I tried pressing enter without entering ...
1
vote
1answer
123 views

Error installing wine

When I install wine, I get this. I have ubuntu 13.10. I am connected to the internet, I am posting this with the same computer. I have no proxy. Fixed. I the source to the Main not US ...
-1
votes
2answers
1k views

Why is usermod -a -G sudo username not working?

During OS installation, I created only one account. Let's call it howdy. I thought it would have sudo privileges but I was wrong. I scoured the internet and this forum to find out how to add howdy to ...
0
votes
0answers
98 views

Problem installing GAZEBO on ubuntu 12.10 (broken package)

i was trying to install gazebo in my ubuntu 12.0, following the steps in "gazebosim.org/wiki/1.2/install" . However, after i input sudo apt-get install gazebo in terminal as step 4 suggested, it ...
1
vote
1answer
617 views

Changed root password on my server, now can't login anymore

I decided to change the root password that came preset on a fresh DigitalOcean server (ubuntu 12.04). I used the first answer to this post: How to change root password in ubuntu? which is: sudo -i ...
0
votes
0answers
19 views

Trying to install Kdenlive--source directory?

I am a total linux illiterate, but I'm trying to get my head down and make things work. I have downloaded Kdenlive from web, want to install in root but get error message after typing sudo make ...
0
votes
3answers
705 views

how to edit lightdm.conf file and save it

hello everyone i was searching for login screens like mac and i got this one MAC OSX LOGIN SCREEN but i did everything correct and suddenly it said to edit /etc/lightdm/lightdm.conf this file ...
0
votes
0answers
28 views

how to repository?

I have been trying to setup a PXE server from terminal of another PXE server, at the very beginning I am trying to create repository, I keep on getting this error. sudo: /etc/sudoers is mode 0755, ...
0
votes
1answer
52 views

Sudo command broken [duplicate]

I upgraded my dedicated server from ubuntu 11.1 to ubuntu 12.04. After the server upgrade says 'unable to initialize PAM: No such file or directory' when i am going to change the user to sudo. I got ...
1
vote
3answers
697 views

Accidentally deleted /etc/sudoers file

I get the following error while trying to update my repositories, avinash@avinash-VirtualBox:~$ sudo apt-get update sudo: unable to stat /etc/sudoers: No such file or directory sudo: no valid ...
-1
votes
1answer
2k views

ERROR: sudo: /etc/sudoers is mode 0777, should be 0440 [duplicate]

sudo: /etc/sudoers is mode 0777, should be 0440 sudo: no valid sudoers source found, quitting sudo: unable to initialize policy plugin I have Ubuntu Server 12.04.4 LTS and this sudo problem, i cant ...
2
votes
1answer
284 views

sudo asks for root password but expects user in sudoers?

I have the root account enabled. I have degraded the user (say kenneth) to a standard account and I have set the Defaults rootpw flag in sudoers. When I use sudo it correctly prompt for root ...
1
vote
1answer
150 views

'apt-get upgrade' getting stuck

When trying to install updates after checking with sudo apt-get update, sudo-apt get upgrade is not installing them. username@username:~$ sudo apt-get upgrade Reading package lists... Done Building ...
1
vote
2answers
129 views

what is the sudo -i command [duplicate]

What does the sudo -i command do and in which situations would it be used. read it using the man sudo command but i'm looking for a more diluted discription to help me understand better.
3
votes
1answer
198 views

Why don't the commands 'sudo bash' or 'sudo -s' ask for a password? [duplicate]

Even when I am logged in as a non-admin user, when I enter sudo bash or sudo -s, the system does not ask for any password. In the command history, I have not entered any password for sudo earlier ...
-2
votes
1answer
37 views

Why I cannot download software on Ubuntu?

I have found out that suddenly i am unable to install ANYTHING on my ubuntu distro. Every time I try sudo apt-get install anything i actually get the same error message: ubuntu@ubuntu:~$ sudo ...
3
votes
1answer
130 views

Prevent other sudoers to use apt-get command

How can I prevent other sudoers to run apt-get install command? Other commands such as mount and others are OK with them.
2
votes
2answers
112 views

What is the difference between sudo -i and su? [duplicate]

It seems as if there is no difference whatsoever. When the whoami or id commands are run, they all yield root credentials. Is this an illusion? If the root account is disabled by default in Ubuntu, ...
54
votes
7answers
3k views

Can sudo be reinstalled after being removed?

This seems to be a chicken-egg problem. The most common task using sudo is installing and removing software. sudo apt-get purge <appname> But sudo itself can be removed. sudo apt-get purge ...
0
votes
4answers
84 views

After partitioning space to my ubuntu partition, nothing updates

Right now, I have Ubuntu 13.04, and using sudo-apt-get dist-upgrade does not get me the 13.10 update. Whenever I sudo-apt-update or upgrade lately, I get: 0 upgraded, 0 newly installed, 0 to remove ...
0
votes
1answer
69 views

gksudo from a non sudoer?

I want to run gui applications that require admin privileges from gksudo/gksu on a non-sudoer account. Currently, I can just run sudo guiapplication from a sudoer tty, and will be able to display/use ...
2
votes
1answer
69 views

How to give a quicklauncher or shortcut administration privilege?

I have a quicklauncher in a plasma widget (which is the same as a shortcut) which runs a command which needs administration privilege. I use the quicklauncher frequently and do not want to type root ...
2
votes
4answers
248 views

Access folders with sudo priviliges via Nautilius-Connect to remote server

I need to access the /var/logs folder & many such folders on my remote server from nautilus, using "Connect to server" via ssh. I avoid root logins & have disabled it. I would like to use sudo ...
0
votes
0answers
8 views

when i input “sudo apt-get update” ,i get an w&&E. I've tried many methods but failed to solve it .Thanks for help me [duplicate]

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/mirrors.oschina.net_ubuntu_dists_saucy-updates_universe_binary-i386_Packages Hash Sum mismatch E: Some index files failed to download. They have ...
0
votes
1answer
143 views

errors while using 'sudo apt-get update'

W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get ...
0
votes
0answers
28 views

/etc/sudoers is owned by uid 1000, should be 0 [duplicate]

In order to do something, I misused chown and clearly rewrote permissions where I should not have. Now, when I SUDO, I get the following message: sudo: /etc/sudoers is owned by uid 1000, should be 0 ...
0
votes
2answers
340 views

On each sudo command I get [sudo] password for root:

I have run a script https://github.com/starlilyth/Linux-PoolManager to install it and I have run into the situation where on each sudo command I get the prompt: [sudo] password for root: the ...
9
votes
3answers
2k views

Difference between cat and sudo cat? [duplicate]

Can you tell me what the difference is between cat and sudo cat? All I know so far is that cat is used for displaying contents of file and concatenation.
0
votes
0answers
1k views

sudo: unable to change to sudoers gid: Operation not permitted

I installed Ubuntu server 12.04, then I installed ubuntu-desktop. After I installed the desktop interface. I was not able to login with to the administrator account. When I use su and put user/pwd it ...
1
vote
3answers
1k views

/etc/profile permission denied

I'm running an Ubuntu 12.04 LTS partition and I've recently have had issues logging in. From the GUI login screen, when I enter my username and password, it takes me right back to the login screen. ...
0
votes
0answers
20 views

how do i fix this problem? [duplicate]

~$ sudo apt-get -f install E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process ...
1
vote
1answer
909 views

nvcc not found, but only when using sudo

I can't get ANYTHING working on linux. I'm trying to compile CudaMiner. sudo make: ypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp mv -f .deps/cudaminer-scrypt-jane.Tpo ...