tl;dr: How does the ubuntu user on the AWS images for Ubuntu Server 12.04 have passwordless sudo for all commands when there is no configuration for it in `/etc/sudoers'?
I'm using Ubuntu server 12.04 on Amazon. I want to add a new user that has the same behaviour as the default ubuntu user. Specifically I want passwordless sudo for this new user.
I'm running Ubuntu 11.10. I'm trying to setup a user that's essentially a clone of the permissions of the ubuntu user. This works but I'm not able to sudo with this new user without supplying a password (which I don't even have for this user).
I have two users on my system: itsadok, my main user, and elasticsearch, a user with a different ulimit for running ElasticSearch.
I would like to be able to run stuff as the secondary user without being prompted for password every time.
I visudoed sudoers to allow a user to run one bash script with a passwordless sudo, which works fine when logged in (also via SSH). However, when I log in via SSH using public key authentication and configure authorized_keys' command="sudo myScript", I am promped for the user password by sudo. Having the script itself use sudo on another program does however work without requiring a password.
Hi there!
I'll get straight to the problem, which is quite urgent, so I hope someone here will be able to help me :)
I'm administrating a big Ubuntu 12.04 server, and my user recently lost sudo rights to this server. I was the only admin on this server, and don't have physical access to the server, so I can't use recovery mode to fix the problem.
I am required to create a new user and then svn co into the newly created user's home directory by calling a bash script from a php page.
The below example is a line from the sudoers file which I saw at some other forum.
http ALL=NOPASSWD:/usr/sbin/useradd,/bin/mkdir,/bin/ln,/bin/chown,/bin/cp,/bin/sed
This line obviously sets a passwordless sudo for the user http and adds privileges to the us
When I create new Ubuntu 12.10 instances, I typically bootstrap them by manually SSHing onto the machine and editing the sudoers to put a NOPASSWD on the default user (e.g., ec2-user, azureuser, etc.). Then my install scripts can sudo various commands without having to provide a password.
I don't have anything against passwords.
Hello all,
I manage some HP-UX 11.31 servers. I have some users that have sudo access. All of them belong to the 'sudoers' user group.
Hi I am not very experienced with user management in ubuntu.
I needed to create a new user to manage my application server so following some instructions online, this is what i did:
I became root
sudo -i
I added a group
addgroup jbossgroup
I added a user and assigned it to a group
useradd -g jbossgroup jboss
I created a password
passwd jboss
Then I changed the ownership of a folder t