-2
votes
1answer
39 views

sudo permissions without root access

I want to give certain users on my server access to run commands as apache, but I don't want to give them full root access. Is there a way to allow a user to run a command similar to sudo -u apache ...
0
votes
2answers
45 views

permission denied using sudo

I have an alias in my .bashrc file that runs an executable python file like so: alias my-command="sudo -u apache /path/to/file.py" When I run my-command It prompts for my sudo password and then it ...
1
vote
1answer
258 views

Include AD domain admins group in Linux sudoers?

I'm working in a company whose network is configured through a Win Server Active Directory, with hundreds Windows of computers connected to the local domain. We are doing some tests to start ...
1
vote
1answer
61 views

What are the most optimal permissions for /bin/su?

I want users to be able to use "sudo su -", but not to switch user by password. What are the most optimal permissions for /bin/su? Right now it's: -rwsr-xr-x. 1 root root 42436 Jul 26 18:19 /bin/su ...
0
votes
2answers
81 views

Linux: Apply ownership to all files created in folder

My first question, so be kind... Basically, I have a folder that a user group has access to. This folder has a program in it that runs as root(via sudo) then outputs result files(xml files) to a ...
0
votes
1answer
212 views

“Target the specific user you will be using and assign it user id 0/group 0”

I am trying to virtualize an Ubuntu machine using VMWare vCenter Converter, but ran into permissions issues. I followed the instructions of part 1 and 2 on this page but when I got to "For Ubuntu ...
0
votes
2answers
637 views

ifdown em1 Users cannot control this device. Allow users to control em1 device

I want to allow users to control the em1 device in Linux: When I run this command: ifdown em1 em1 is the embedded ethernet card 1, I want the user to be able to turn off the ethernet card. On ...
1
vote
2answers
246 views

Run binary automatically as root

I have root access. How can I let a general user with little permissions run a binary file as root without a password? I tried giving it root:wheel with chown, but that did not let a general user do ...
1
vote
3answers
521 views

Execute a command from another group

In Linux, I have the following id: uid=1005(username) gid=1005(username) groups=1005(username),33(www-data),1002(git) I'd like to change my effective gid to git so that everything I create will ...
0
votes
1answer
125 views

cp throws 'cannot access' even when sudo'ing

I have a directory ~/c9/support/npm that is owned by my account. I have a target directory /mnt/ws/users/jan/npm that doesn't exist yet, but /users/jan is owned by usr_jan. Now I want to copy the ...
2
votes
1answer
475 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 ...
1
vote
1answer
319 views

Ubuntu Server Permission Problems

Our sysadmin quit and I have been handed "the ropes." Unfortunately, I don't know how to climb very well. Here is my problem. We have 4 servers that we use for our hosting of client's sites. ...
2
votes
3answers
298 views

In Ubuntu, how can I give two groups of users root power except for access to one folder?

I just created a Ubuntu development server and I would like to work with two teams on it. I want people from these teams to do anything they want, but I don't want them to be able to see the files ...
1
vote
5answers
2k views

How do I reset ownership of /usr/bin/sudo on Linux?

I accidentally changed ownership of /usr/bin/sudo to my current user (i also did this for some other stuff in my /usr directory). I can't change any of them back because I need ownership of ...
0
votes
3answers
905 views

sudo: apache restarting a service on CentOS

I need my web app to restart the dansguardian service (on CentOS) so it needs to run '/sbin/service dansguardian restart' I have a shellscript in /home/topological called apacherestart.sh which does ...
3
votes
7answers
3k views

security issue of Linux sudo command?

I am using a Red Hat Enterprise 5 Linux box. I find if a user is in /etc/sudoers file, then if the user run command with sudo, the user will run this command with root privilege (without knowing root ...
4
votes
6answers
2k views

Scripts That Need (some) Root Access

I have a general question about system administration scripts that require "some" commands to be executed with root access, and other as a normal non-root user (ie myusername, etc.). I should mention ...
5
votes
5answers
13k views

ubuntu: let a user run a script with root permissions

I have ubuntu 8.04 and I want to write a bash script that runs as root which every user can run. I myself can do sudo. How do I do that? CLARIFICATION: I don't want to do it with sudo, because then ...
1
vote
5answers
608 views

Set account to root in Ubuntu

I want ubuntu to treat my login as root. I shouldn't have to sudo. What do I do? For almost anything I need to do, I have to sudo it. This causes problems specially in case when I need to install a ...
14
votes
12answers
19k views

Why does sudo command take long to execute?

I've been picking up Linux (Fedora 10, then 11) over the past few months (and enjoying it immensely-- it's like discovering computers all over again, so many things to learn). I've added my user to ...