I've created an SFTP server using OpenSSH and configured a special user account with one folder access only using this how-to.
When I run these commands I can connect to the server:
sudo chown root:root /var/commons/
sudo chmod 755 /var/commons/
But when I try to modify files I get a permissions error which is solved by running this:
sudo chown transferer:sftponly /var/commons/
sudo chmod 755
Hi,I thought I solved the issue by not having Execute permissions with the SetGid on the Captures directory.I changed the permissions to: drwxrws---+ 2 root ... [by xq1xq1]
Hi everyone,
My problem is: I have to create an user (admin maybe) with full permissions (rwx) to other users (regular users) files without using the sudo command.
The system has a crontab job (as root obviously) that will remove all permissions when necessary from files a I choose.
When I try to edit my /etc/hostname file, using: sudo nano /etc/hostname (or any other editor) I get the following: Error writing /etc/hostname: Permission denied
I then tried to: sudo chmod u+w ./hostname
and got the error:
chmod: changing permissions of `./hostname': Operation not permitted
I get the same error trying to add write permissions to any use or group.
This is what ls show:
-rw-r--r
I'm using Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-31-virtual x86_64) and changed the permissions of the "etc" directory to 444 (sudo chmod 444 etc).
To enforce the following permissions on files in /var/www, can I use the commands chmod u+s and chmod g+s? Do I just run it on the /var/www directory (once the permissions are properly set)?
Permissions:
chown -R root:web /var/www
chmod -R g+rw /var/www
I'm on debian and I have my website in the directory /srv/www/mysite.com/public_html
I set chown for www-data:www-data on /srv/www.
I have root disabled and created a sudo user which is id 1000:1000. I would also like to use this user to upload to /srv/www so I added my sudo user to the www-data group.
Recently I had to change the folder permissions of /usr folder. Now the whole sudo is not working.
I need to set up the following script to run as root whenever I log in:
#!/bin/zsh
truncate -s 0 ~yourstruly/.juniper_networks/network_connect/ncsvc.log
I know how to run the script as root interactively (namely through sudo), but I can't figure out how to make the script run as root non-interactively whenever I log in.
How can I do this?
FWIW: the script is currently owned by root, has permi