0
votes
1answer
28 views

Sudo as www-data, unable to cd

I have a .procmailrc setup which pipes emails into a script. The core of my problem is that the email is received as user 'magic', and the script that I need to process the email needs to be run as ...
1
vote
1answer
65 views

How to do admin tasks without becoming root on Debian?

How can one perform some administrative tasks from non-root account without becoming root on Debian 7? For example, my iptables block all network access for all users including root except one user - ...
3
votes
1answer
150 views

'user is not in the sudoers file' but actually is

I have already read a lot of posts about enabling sudo-access for a specific user but those couldn't help me so far. The situation is: I'm running Debian Testing. On the system there are only two ...
4
votes
1answer
55 views

Passwordless sudo works for one user, but not for another

I struggle to create passwordless sudo for one user on my Debian server. I've added the following line to the sudoers file: deployer ALL = NOPASSWD: ALL but it doesn't work. To my surprise, I can ...
1
vote
2answers
63 views

How do I configure a Debian so that multiple users can do administration, but not see each others' personal files?

I'm looking to set up a server to share with a group of people. The machine will run Debian GNU/Linux, and we would like to allow multiple people to do administration tasks (in particular installing, ...
0
votes
0answers
61 views

Change all commands in custom application menu on Debian

so what I have is applications that's supposed to run as root, what I want to do is to add a sudo in the beginning of each command with a single bash script, so I can run these programs directly from ...
1
vote
1answer
460 views

Disabling SU on all new users on Debian

I'm new to Debian, but learning things very fast. Working on Debian Wheezy, and I realize that if I create a new user with useradd, the user gets sudo rights! To test this, I log in with the new user ...
1
vote
1answer
1k views

Can't install Parallels Tools on Debian 7.2.0

(Parallels Desktop 9, latest version) As per instructions, I switch to root: $ su - root $ whoami root $ echo $EUID 0 and then execute the installer: $ cd /media/cdrom0 $ ./install and I get ...
0
votes
1answer
34 views

Getting molly-guard to work with sudo

The program molly-guard is a brilliant little tool which will prompt you for a piece of information before you reboot or shut down a system. Usually it asks for the hostname. So when you work a lot ...
1
vote
1answer
367 views

Can't validate mine, sudo nor root in Debian “Jessie” Gnome anymore?

I'm Debian beginner & GUI guy in a bit of trouble? Can't login as sudo/gksu/root/su nor as (main/super)user after removed user password via Gnome-user-settings. History of actions (Probably ...
1
vote
1answer
86 views

Let a user to run a command as a member of a group he does not belong to, using `sudoers`

How can I let a user U to run a command /usr/bin/C as a member of a group G (while he does not belong to the group G), using sudoers on Debian Wheezy?
6
votes
2answers
673 views

Allow user to use sudo command has multiple ways, which one is better?

I am a Linux Newbie, just learning it and using Debian 7.0 Wheezy. I have seen two methods to allow user to use sudo One is to use visudo to modify /etc/sudoers and add following username ALL=(ALL) ...
0
votes
1answer
3k views

Why there is no sudoers file: “/etc/sudoers: No such file or directory”?

I am trying to add a new admin user, but: # adduser username admin adduser: The user `username' does not exist. # man sudoers No manual entry for sudoers # less /etc/sudoers /etc/sudoers: No ...
0
votes
1answer
844 views

Shutdown Debian from php script

I am trying to shutdown my RaspberryPi running Raspbian from a php script running on lighttpd webserver. shell_exec("sudo /sbin/shutdown -h now 2>&1"); I added lighttpd ALL=(ALL) NOPASSWD: ...
2
votes
2answers
777 views

Linux - Debian - Original groups that a user is in

This is embarrassing; I used the usermod command to add myself to the disk group. However I forgot to use the append option! so I'm not a member of any of the groups that I was originally, now ...
0
votes
2answers
535 views

How do you create a user with read and write access to another user's home directory

I am new to Linux and need some help how I can create a user with some special rights. I have read a few articles and "how Linux permissions work" but have not yet understood how it works in ...
5
votes
3answers
854 views

Different SSH/Login Password From SUDO Password

I'd like to use a different password to elevate my user to sudo status than the password I use to login (either via GUI, shell, or SSH) to my account. Is this possible? EDIT: Since setting the root ...
0
votes
1answer
248 views

hardening a server: disallow password-login for sudoers and log unusual ips

Two question regarding sudo-login into an ubuntu-system (debian tips welcome as well): Is it possible to require sudoers on my box to only login with publickey-authentication? Is it possible to log ...
2
votes
1answer
1k views

Sudo can't resolve hostname

$ curl http://google.de # DNS resolution works fine ... $ sudo curl http://google.de curl: (6) Couldn't resolve host 'google.de' $ echo $http_proxy http://proxy:8080 $ cat /etc/hosts 127.0.0.1 ...
3
votes
1answer
978 views

Secured bash history usage

I know all commands user sends to server are automatically logged into ~/.bash_history I want to give access to my PC to my colleague (I've already gave hime some limited access to use sudo via ...
1
vote
1answer
1k views

visudo problem on Debian

Recently I migrated from Ubuntu to Debian, first thing i wanted to do was to give myself sudo permissions and lock the roir account. By default sudo group don't have permissions to do this on debian, ...