2
votes
4answers
139 views

Starting a script as another user

I've created a script in /etc/init.d/ which has to run several other scripts from other (non-root privileged) users from their home directories, as if they started them. I launch these scripts ...
2
votes
1answer
222 views

User not in sudoers, but still can use sudo

I have a user user1 that is not in the sudoers file (nor belonging to groups in sudoer) but can still use sudo. How is it possible ? user1~$ groups user1 www-data My sudoer conf ...
2
votes
3answers
358 views

Rsync over SSH getting no tty present

I'm using the following command in root's crontab on Debian. rsync -vqrlHEAXogDtzhi --log-file=${LOG} --progress --rsync-path="sudo /usr/bin/rsync" --exclude-from=$CONFIG_DIR/excludes -e "ssh -i ...
1
vote
2answers
166 views

Has the use of sudo changed in Debian 7?

I will try to explain my situation first. I am currently running 6 virtualized Debian servers on a ESXi host machine. The virtual servers where installed with a Debian Linux 6 (Lenny). Recently I ...
0
votes
1answer
134 views

Root cannot move files

I'm on Debian 5, I want to move files, but I'm getting a permission denied error, even if I'm root. Do you have any solutions? -rw-rw-rw- 1 scusr scusr 49901 Jun 17 09:04 ...
1
vote
1answer
220 views

sudo group member privileges in the sudoers file

I've just installed sudo on my machine (Debian Wheezy). While I was editing the sudoers file using visudo, I noticed this line: %sudo ALL=(ALL:ALL) ALL On several tutorials and blogs (although ...
-2
votes
1answer
1k views

How to set up SUDO rights for execution of Python script from PHP [closed]

I run Raspbian Wheezy on my Raspberry Pi, and i want to call a Python script from PHP. That all works great (i call 'exec python go.py' from php) but now i want to call a script which needs root ...
0
votes
1answer
137 views

Default user not in sudoers file

In Debian 6, right after my installation. I try to run a command as root, only to find out that my account isn't in the sudoers file. This is from the main user account that is set up under ...
12
votes
2answers
649 views

Allow complex sudo command on Debian Linux

I need to allow a specific command on a Debian Linux box for a single user. I've tried this in the /etc/sudoers file: # User privilege specification zabbix ALL=NOPASSWD: /usr/bin/apt-get ...
4
votes
1answer
204 views

How can I use etckeeper via sudo with different users and have the correct user in the commit message? [duplicate]

I'm working on a server with several admin users. Each of them can use sudo to make configuration changes. We're keepeing our /etc directory version-controlled using etckeeper. However, when I or ...
1
vote
2answers
72 views

sudo suddenly stopped working on debian

I've been using 'sudo ' since I setup my server about a week ago. It suddently stopped working with no explanation. I am in 'sudo' group. So there should be no config change required to /etc/sudoers ...
1
vote
1answer
131 views

Run preseed commands as specific user / switching users

Beside the usual setup where I create a normal user foo, I want to run a few d-i preseed/late_command commands as that foo user. My initial thought was to simply call those commands with sudo, e.g: ...
0
votes
0answers
430 views

sudo in Debian squeeze inside linux-vserver always wants password

Every since I upgraded all my linux-vserver Debian guests from Lenny to Squeeze I've the apparent problem that whenever I want to use sudo it asks me for my password. Every time. I've configured sudo ...
5
votes
2answers
100 views

Non-deterministic behavior of `sudo`

I've got a rather strange problem with sudo. Basically, it authenticates, but sometimes just doesn't launch the command provided. For example: liori@marvin:~$ sudo whoami root liori@marvin:~$ sudo ...
2
votes
3answers
1k views

How can I use sudo when I logged in with a SSH key in PuTTY?

I know the title probably doesn't even make sense, but anyway. I downloaded PuTTY and set it up, and followed this tutorial to set up SSH keys so I don't have to input a user or password when logging ...
2
votes
1answer
448 views

Grant password-less permission for specific script as specific user with sudo

I have a server running Debian Squeeze with the latest updates. I tried to set up the sudoers file to allow the user www-data execution of a specific shell-script as a specific user. I used visudo for ...
2
votes
3answers
1k views

Why doesn't sudo -E actually preserve my environment?

I'm trying to sudo some binaries that lies in a custom path. That custom path is removed when I run sudo though, but sudo -E should preserve my path. Why doesn't it work? $ env | egrep ^PATH ...
2
votes
2answers
456 views

How to configure SUDO for no password if user is logged in remotely from a specific host

I would like to configure my Debian box sudoers file as follows: If USERNAME is remoted in from IP a.a.a.a: No password is needed to use sudo If USERNAME is remoted in from anywhere else or local: A ...
1
vote
1answer
941 views

Using NOPASSWD for specific commands in sudoers file, PASSWD for all others

I would like to configure sudo such that users can run some specific commands without entering a password (for convenience) and can run all other commands by entering a password. This is what I have, ...
0
votes
3answers
452 views

Debian Administrative Password Issues

I installed Debian Lenny few minutes ago and I have a big problem. I created an user successfully. I can login with GDM. For now everything works perfectly. But, when I try to run root terminal, run ...
6
votes
2answers
17k views

Debian: how to create a user with root privileges (sudo)

How do I create a user with root privileges in Debian? Maybe it sounds a bit silly, but I don't think I need user directories, only some rights to run services (mainly web server, mysql, etc.). I just ...
2
votes
4answers
416 views

sudo like in Ubuntu (for Debian and other Linuxes)

I personally like the default sudo behavior of Ubuntu: - Root login impossible - "admin" group granted "ALL=(ALL) ALL" - users in the "admin" group are asked for their user password (not a root ...
2
votes
1answer
504 views

How do I skip the OTP passphrase prompt for sudo but keep it for ssh?

I've configured a server to support OTP (using opie) with ssh. What annoys me is that I get the OTP passphrase prompt even for root when doing sudo. How can I configure PAM to suppress it? Don't ...
2
votes
5answers
1k views

su to myself without password

How can one set it up so that su to the same user that is currently logged in, that is foo$ su -c 'something' foo does not require a password? This wouldn't add or remove any security, as it ...
2
votes
3answers
1k views

Best practices for users/groups in Debian servers

On my server/vps after I initially get the credentials I: adduser meder visudo in visudo, at the far bottom: meder ALL=(ALL) ALL And from then on I use meder, along with the sudo command. Is ...
1
vote
6answers
413 views

Firefox execution fails from a root executed script with privilege drop

I can't run firefox from a sudoed python script that drops privileges to normal user. If i write # sudo python >>> import os >>> import pwd, grp >>> uid = pwd.getpwnam('norby')[2] >>> gid = ...