Tagged Questions

I understand the script below has a serious problem, and NOEXEC and RESTRICT are not enough as a solution to this.
user ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf
However, I still have some ...

Maybe I should rephrase - what is the most secure way to accomplish my needs?
Details
I am using WinSCP to modify my Apache document_root. The directory /var/www/html has an owner and group of root. ...

sudoers(5) manpage says that shell-style wildcards (aka meta or glob characters)
could be used in command line arguments in the sudoers file. They are *, ?, [...] and [!...].
My idea is to use some ...

It is a production server - CENTOS 6.1
Some user having root access in the past had logged on to the server and removed the SUID bit from the /bin/su file and then exited root. Now we are not able to ...

I've recently fallen in love with github's Atom text editor, and I enjoy using it for all my local coding and configuration.
I started to maintain a Nagios installation for several dozen servers and ...

I am trying to sandbox a user account to the point where it cannot edit or view any files beyond a certain folder, namely /home/user/test. This account will be compiling and running a C++ program that ...

Trying to install tor-browser, I screwed up my sudo privileges when I tried to take ownership of a directory. Now I get a message:
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit ...

I have a requirement where an web application (php) must run a script on another server. I tested running the remote script as apache user by sudo-ing to the apache user via the root user. The script ...

Does any one know how to find and replace text in a file. it can be implimented into a bash file. i would like to find the line and the output the text to it the file can only be opened with the root ...

I am running Ubuntu 12.04 on my laptop using VMware Player. I am not sure why but I have an account called "User Account" in addition to my account that I usually login to use Ubuntu. Well that was ...

So recently, some of my friends had been tampering with my files and data through terminal, so I decided to secure it by doing two things:
First, I added the following to my ~/.bash_profile for ALL ...

I've got a group (let's say name "group1", ID = 1234) and a user (let's say name "user1", ID="4321"). I want to do two things:
I want that user to change passwords from other members of that group, ...

I executed the following command to add a ppa repository in Ubuntu:
sudo add-apt-repository ppa:ppaname/ppa
This command returned an error that the ppa name format is not correct. Then I looked here ...