Permissions are the unix way of controlling access to resources such as files, directories and devices and may be specified for an owner, group, or all users.

learn more… | top users | synonyms (1)

2
votes
5answers
155 views

Why can't I delete my files?

I copied some files from a data DVD to /home/emma (ext4), and all of the files are read only. This is what all of the files are like: emma@emma-W54-55SU1-SUW:~$ stat cd/Drivers/Drivers_List.rtf ...
0
votes
1answer
61 views

How to remove Linux permissions on files for emailing to a Windows user

A friend needed some help with LaTeX so I created some files, zipped it and mailed it. My friend (who is running Windows 8.1) could open but not edit the files I sent, due to write-permissions. I ...
1
vote
0answers
36 views

Capital S in file permissions [duplicate]

I issued the command sudo chmod 700 <directoryname> in the hopes of getting the permissions for that directory to look like drwx------ Instead, they look like drwx--S--- Why does this ...
3
votes
1answer
227 views

Can ACLs override file perms on Linux?

I struggled with this problem on FreeBSD recently, but thank God for ZFS which solved it for me there. However I have it again in CentOS with ext4 and don't know if there is an easy way around it (or ...
0
votes
1answer
35 views

What should file permissions be set to in order for an FTP editor to work?

I installed git on my server and cloned my development repository using the root user. The permissions appeared to have been set to: Files: -rw-r--r-- Directories: drwxr-xr-x I previously had ...
2
votes
4answers
4k views

'chmod g+s' command

Hello I want to understand the role of the chmod g+s command in Unix. I also would like to know what it does in this particular context: cd /home/canard; touch un; chgrp canard .; chmod g+s .; touch ...
0
votes
5answers
82 views

setuid (and other) permissions lost when copying / elsewhere - what to do?

I sort-of-cloned an existing Debian 7.x distro by copying the contents of the root filesystem (not the special dirs of course) to another HDD. I booted, things seem to run, but - I get some weird ...
0
votes
1answer
123 views

Proper create user account with permissions on CentOS/Apache

I have setup a CentOS VPS to run apache, I am having trouble with permissions when creating an account. I have setup a virtual host host to point a domain to /home/user/public_html <VirtualHost ...
0
votes
1answer
136 views

grub permission error

I had some package and a kernel update today on my Debian work computer. When running sudo apt-get install I get the following: paul@icarus:~$ sudo apt-get install Reading package lists... Done ...
5
votes
5answers
694 views

What are the root permissions for a file?

If I type: ls -l file.txt I see that the rights for that file are equivalent to "456": 4 = owner (r--) 5 = group (r-x) 6 = others (rw-) Which the rights for root in this case? Does it have 777? ...
1
vote
0answers
130 views

Linux Executable with Unknown type asking to be executable every time I run it in Nemo

When I try to open an executable with the type Unknown I get a message saying: "The file 'file name' has no known programs associated with it. If you trust the source of this file, and have ...
1
vote
1answer
119 views

Crunchbang: Can't use simple-scan without administrator rights

I'm running the latest version of Crunchbang 64-bit on a Dell E5510 notebook. Installing my printer and scanner worked fine - I just used an existing Ubuntu tutorial. However, scanning without ...
1
vote
1answer
275 views

rysnc files and folders into a location without altering permissions

I'm using rsync to deploy some static HTML that is going to be served by nginx. The user that is running rysnc is "jenkins" nginx is using the www-data group to access the folder. jenkins is member ...
3
votes
1answer
63 views

How passwd command from non-root account succeeds

I am trying to change my password as a non root user : passwd The data is updated in /etc/shadow, but checking the permission i get: ---------- 1 root root 6076 Jan 27 17:14 /etc/shadow cat ...
0
votes
1answer
24 views

Permissions to see content

If the owner/group of a folder and/or is set to 0 0 (zero zero), can I see its content? I'm trying to access a directory with such permissions.
1
vote
3answers
775 views

Ownership of a mount point

I cannot create files in my newly mounted partition . The folder to which i am mount the partition, /media/hrmount, is owned by root so even if I add a fstab line like UUID=irrelevant ...
0
votes
0answers
49 views

Having trouble grasping Synologys permission system

I've got a DS1513+ running an LDAP server and I'm trying to get my permissions working. What I am trying to do is setting up a share all for myself. I created a share(d folder), lets name it ...
2
votes
0answers
42 views

Disable viewing/listing rights to users

I'm new to linux administration and I'm not sure how to search for this problem. When I create a new user, s/he can browse the filesystem. E.g. ll /. How can I restrict the user to a few select ...
0
votes
1answer
165 views

How to make directory writable?

I just installed apache2 and WordPress on my RPi. I followed this tutorial. After its successful installation, I moved on to customization. But when I upload any images, etc. I receive the following ...
1
vote
0answers
60 views

Linux: how to run a program with rw access to only a folder

How can I execute a program in a way that all the system is RO and only some folders are RW? Eg: steam (:P) roexec --rw ~/.steam steam Is there any tool that allows me to do this? I've tried mount ...
0
votes
3answers
92 views

What should the permissions be for website files?

I've locked down my CentOS web server so root can't SSH in. My website directories, and files are owned by root. So when I upload files, it's a two step process. I upload them with WinSCP to my /home ...
2
votes
4answers
343 views

Moving a directory from a user to another user, keeping the correct permissions

Let's suppose we have to users: alice and bob. Now Bob wants to move Alice's ~/Documents directory into his home folder. What's the best workflow to do that, updating the permissions (from Alice to ...
1
vote
1answer
148 views

Permission 0000 in /var/www/html through the sFTP

I can write in /var/www/html through the terminal in ssh, but to create a file by sftp through Filezilla, the file created have permissions 000. How do I fix this? My problem is with these ...
1
vote
2answers
56 views

Common user to modify files owned by 'other' users

I would like to understand how to use the permission system in CentOS to achieve the following: The system has the following users: user1 user2 user3 And the following directory structure.. ...
1
vote
0answers
120 views

ssh not using ~/.ssh/config, even after I play around with permissions

I tried modifying my ~/.ssh/config file to allow automatic fast X forwarding as per this site http://xmodulo.com/how-to-speed-up-x11-forwarding-in-ssh.html I then tried logging into a server and ...
0
votes
1answer
129 views

Hide directory listing? chmod 730 /home/share? [duplicate]

So I want to hide the listing of all files to a particular group, yet I want them to be able to create/read files in that same folder. The following permissions on the folder appears to work (write ...
1
vote
1answer
46 views

Why can't an SGID program read a file from the same group if it's used by another user?

The "wall" command has SGID for the tty group. The proba file has the tty group. The FS that has the wall binary has no SGID mount option. I thought the wall command would just output the proba's ...
1
vote
1answer
54 views

What is the difference between these two sets of command for configuring ACL permissions?

Hi I am wondering what is the difference between the two sets of commands below: 1) To allow Davis to access and modify all files and folders in the the home directory of John # setfacl -m ...
0
votes
0answers
77 views

Configure server such thata non-root user can deploy a Python web application (Django, Flask, …)

I have deployed a Django and a Flask app on my local Debian server where I have root access. A friend of mine has a server running Ubuntu server. I just have a user account there. Is there some way ...
0
votes
0answers
18 views

How can I set a folder undeletable but have R/W permissions to it's content [duplicate]

I have a directory which I'd like to mark as not deleteable, but have all the usual permissions of read/write/delete on all subdirectories and files. How can I achieve this? I tried setting the ...
0
votes
1answer
77 views

Sudo User: Not able to see the home directory of other users

I created sudo user hrsupport with following commands: hrsupport ALL=ALL, NOPASSWD: /bin/chown, /bin/chmod, /bin/chgrp, /scripts/pkgacct, /scripts/restorepkg How can I achieve this The hrsupport ...
0
votes
3answers
265 views

/etc/passwd permissions and GECOS field

The default permissions on Ubuntu (or even some BSD) distributions for the /etc/passwd file are 644. It is pointed out in questions like this that /etc/passwd is a sort of user database and it is ...
2
votes
1answer
318 views

Set group ownership on FTP upload via an ACL

I am interested in setting an ACL which will chown all the files I upload through FTP to the www-data group. However, after performing chown -R user:www-data /var/www/website.com/public_html/ ...
1
vote
1answer
45 views

Still able to read file after changing permissions

I've made a file as root, and written a string in it. Now I've changed mode to "0" like this: root# ls -al transit/ total 4.0K ---------- 1 root root 6 Jan 5 18:15 27050 root# If I try to tail, ...
1
vote
1answer
28 views

File permissions on uploaded files

This is hopefully a simple question. I have a VPS set up running LAMP and accepting FTP connections. the only problem with my setup at the moment seems to be that apache is denied access to uploaded ...
0
votes
1answer
85 views

Sendmail on hpux: error dsn 5.0.0

I am running sendmail as user smmsp. I have create user,group with same name. sendmail starts ok, but when I try to send email outside of localhost give me this error: Jan 3 20:46:59 hpux2 ...
1
vote
0answers
103 views

Is file creation atomic?

I have a problem to solve: I just can make one CURL operation each second, but this operation can send up to 40 parameters. Those parameters are Id's. I have one web site that may sometimes ask for ...
3
votes
1answer
42 views

Protecting process's envvars from exposure

From I've read about current best practices for developing web applications (such as the Twelve Factor guide), the recommended approach for storing configuration data is within environment variables. ...
0
votes
1answer
93 views

Can't access VirtualBox share from MediaTomb

I just installed Mint 17.1 Cinnamon as a virtual machine using VirtualBox. I want the VM to act as a media server running MediaTomb, however MediaTomb can't access my VirtualBox share. I know I'm ...
2
votes
2answers
55 views

Limit user from viewing files he doesn't own

Normally, file such as /etc/passwd have the permissions 644 which means that everyone has a right to read the file (4) but only the owner has a right to read it and write to it (4+2=6). I want to ...
1
vote
1answer
42 views

What if I add a user to a supplementary group?

I am using debian 7.0 and I added "debian-transmission" to the group "pi" with: usermod -a -G pi debian-transmission I made this change because transmission was not able to write the pi mounted ...
1
vote
1answer
371 views

nginx - userdir with user permissions

What I want to do is have the usual server running user files like this: http://users.example.com/~user1/stuff.php which would be stored somewhere in /home/user1/www or something like that, but ...
0
votes
0answers
157 views

Allowing access to samba share without setting permissions to 777

I have a linux box (Centos 6.5) joined to my windows domain that has storage attached for backups. I have a samba share so domain servers can access the storage and I only allow MYDOMAIN/Administrator ...
2
votes
1answer
60 views

GNU ls long listing without permissions/mode bit

Is it possible to make GNU ls omit permissions/mode bits in long listing? If not, is there an alternative, practical and commonly available program that is more flexible?
3
votes
0answers
46 views

Protecting my server from it's own users

Are there any tools to check my server's file system for permission vulnerabilities? My server is a low security web and email server running our local email and website. Anyone in my organization ...
3
votes
0answers
14 views

CLI: How to set a folder's permissions the same as existing adjacent folders? [duplicate]

I know how to set permissions etc, but rather than: Check permissions of one existing folder; and Note them down somewhere; and Use a command to set the permissions of an adjacent folder to the ones ...
4
votes
1answer
212 views

How does ps get the executable of processes of other users?

When running as non-root, if I try to use readlink(2) on a /proc/<pid>/exe for a process not owned by me I get a permission error. So how then does ps with the -f option, which isn't setuid ...
11
votes
2answers
585 views

Can I make a file only accessible to a script, and not a user?

I have a user with limited access on the system (that is, he is not a sudoer); let's call him Bob. I have a script or a binary which I, the system administrator, trust, and would have no problems ...
2
votes
1answer
112 views

files saves to ntfs drive adhere to umask, ext4 does not

I have 2 storage drives, 1 is ntfs and the other is ext4. Both mounted in /media as Storage_1 and Storage_2 I've run chmod -R user:user /media/Storage_* I've tried putting umask=022 in ...
-1
votes
2answers
49 views

Adding setuid permissions to a file

I am hosting a php application on my CentOS 5 server. The application runs some commands via a ssh file called openmgr. For that I want to give a permission of -rwsr-xr-x to the file. I tried chmod ...