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)

1
vote
0answers
28 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 ...
0
votes
0answers
23 views

Is it logical to give root execution to some commands executed by a normal user? [on hold]

Given a C/C++ program that uses some system calls or commands, say for example sockets. In this question the solution gives root access to a normal user to run a specific one executable, which means ...
1
vote
1answer
13 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
29 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
27 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
21 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
38 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
24 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
31 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
40 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
39 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
28 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
299 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
37 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
20 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
46 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
25 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
17 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
16 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
20 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
0answers
41 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
36 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
32 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
38 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
16 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
19 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
44 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
28 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
25 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
46 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
23 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
66 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
42 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
35 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
38 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
36 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 ...
10
votes
2answers
488 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
34 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
25 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 ...
0
votes
1answer
15 views

Where are the Android Users and Groups?

Android uses a linux kernel with each installed app getting its own user. I was expecting to find them in /etc/passwd but I couldn't. Where are they stored?
3
votes
3answers
115 views

Unable to run python script - Permission Denied

Trying to run a NZBGet (Python) Script, I've tried to run manually with: /mnt/local/ext001/MEDIA/NZBGet/scripts/videosort/VideoSort.py but this results in: bash: ...
1
vote
1answer
23 views

Detect changes in permissions

Is it possible to detect the files in a folder that have changed their permissions? I have read about the command find and It detects files that have changed the date of last modification but changing ...
1
vote
1answer
44 views

Preventing user from accessing parent folders [duplicate]

I have a user who I only want to be able to access /var/www/ucp/ (his home directory). I have executed the following command on the / directory, the /var/ directory and the /var/www/ directory: chmod ...
2
votes
2answers
110 views

How to deny mounting permission?

Consider the following situation: /dev/sda1, /dev/sda2, /dev/sda3 are 3 partitions of the /dev/sda disk. Ubuntu is installed on sda1 and /home mounted on sda2. Only one user foo on Ubuntu system so ...
2
votes
2answers
68 views

assigning read/write privileges for a folder to a user in CentOS 7

I am logged into a CentOS 7 server as root. I created a folder /somefolder. I want someusername to be able to write to that folder via scp from a remote computer. What command should I run so that ...
-1
votes
2answers
53 views

Cannot access a directory with permissions drw-rw-r— [duplicate]

I am having a very strange permission issue when trying to access any of the files in a certain directory as a specific user (adventho). This has been working fine for several months and I just ...
3
votes
2answers
51 views

how to set more than 3 level of access permissions for a single file/folder?

normally I can only do 3 levels: owner, group, others But I want 6 for group1, 5 for group2, 0 for all other groups how can I do this?
2
votes
3answers
177 views

chroot permission denied! But Im root!

I am trying to chroot into an old HD to change a forgotten password, but chroot says permission denied? what gives? I am root! The harddrive I am trying to chroot into is an old version of edUbuntu ...