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
2answers
149 views

Why can user have lower permissions than group or other? Who can change them?

It is my understanding that the owner of a file user can have lower permissions than group or other. What is the justification for this? Can only root and the owner change the permissions on a ...
3
votes
1answer
76 views

Two users with different permissions on same directory

Is it possible to give two users different permissions on the same directory? I want to use it for ftp: userFull gets R+W and userLim gets only Read, depending on who logs on. Im getting stuck on the ...
1
vote
2answers
116 views

In Linux, why do you need to be root to write to /proc/sysrq-trigger?

WARNING: THE NEXT KEY COMBINATION WILL CRASH YOUR COMPUTER Ok, I get that this is an administrative tool and all, but I realized that any user can do ALT + SysRq + C. This link explains what I'm ...
2
votes
1answer
109 views

Linux motion user - run it as ssh key as pi to remote server

This question is related to the two other questions I had earlier, about enabling Raspberry Pi to act as a motion sensor that will try to ssh into a more powerful server when it detects motion (the ...
1
vote
1answer
505 views

OpenELEC, non-root user, home directory, SSH

I'm running OpenELEC on Raspberry Pi As you know, directory /storage is a shared home folder between user root and user openelec This makes a problem when you want to setup ssh key authentication for ...
1
vote
0answers
123 views

Can’t figure out Samba file share permissions as needed.

I’m in the final project class for my degree and my group has to have a Linux server that supports a Windows environment. With the files in the file share need to be read only, can be edited and then ...
4
votes
2answers
143 views

Is it possible to prevent files created being world-readable?

Assume a user uid=1000 and guids=1000,33,277 is allowed to create a file in the folder /files/. Is there any way I can prevent that the this user allows others to read the file (which are not at least ...
0
votes
2answers
691 views

Privileges for jenkins at apache's folder

I'm having issue similar to this: How to copy files as Jenkins "post build" action if i don't have privileges to destination directory I'm willing to move/copy/rsync files from jenkins ...
1
vote
0answers
39 views

External disk - how to ensure readable by all without needing root perms?

I have an external HDD. It's portable, so I plug it in all over the place. Needless to say, these different places have different passwd files and uids. The files are mine and I need to access them ...
0
votes
1answer
37 views

Write a file in /var/lib/sysnews/ [duplicate]

In that folder are stored the news files: they can be created by the system administrator to write some informations for the users, as suggested in this link. I tried as a normal user to add a file ...
0
votes
0answers
191 views

Deluge torrent client cannot save files to mounted drive

Yesterday I installed an SSD as my new primary drive, and installed Fedora 20 on to it running cinnamon-desktop. I set a 1.5GB partition on my old drive, which was my data partition on the old setup, ...
3
votes
3answers
670 views

Allow other user to copy the files from my folder?

I am working with Ubuntu and I have a jar file in this folder /export/home/david And I am logged in machineB as david user. Some other user is also logged in that same machine. And I want other user ...
4
votes
1answer
703 views

Sudo permissions by ldap groups via nslcd

I have a problem with my sudo permissions in an MS ActiveDirectory to Debian LDAP authentication/authorization setup. What I have so far I've configured nslcd with libpam-ldap via ldaps and ssh login ...
4
votes
2answers
101 views

setting default permissions with setfacl

I am trying to set default permissions on my directory structure using acl. I would like to have following default permissions for directories and for files respectively: drwx--x--- -rw-r----- but ...
0
votes
2answers
84 views

installing own Git Server, push code after granted permission

I'm trying to install a Git Server in a RedHat 6.5 box I'm folowing this tutorials : 1,2,3, and to be honest the more I read the more things get obscure. If I'm to create a git user wich will be ...
2
votes
2answers
45 views

Who should own files shared by a group and where should they go

I am configuring a Linux work station that will be used by a small number of users (20-30). These users will belong to a small set of groups (5-10) with each user belonging to at least one group and ...
0
votes
3answers
802 views

Script to recursively check permissions and owners of a directory and write shell script to recreate them

I'm trying to write a shell script to preserve and rewrite all permissions/groups in a large directory with several subdirectories in the event they get changed or are not properly created or if ...
1
vote
1answer
161 views

With a file with 750 permission, which group has “5” permission?

The bits 750 invoke the -rwxr-x--- permissions, on a given file, to the user who owns the file and "the" group. My query regards the group. Which group on the system would receive these permissions? ...
0
votes
1answer
275 views

Access through samba to link to different filesystem in shared directory (permission error)

I have a laptop with Dual Boot Lubuntu 14.04/Windows 7 I have a BorrajaX user in Lubuntu and another Borrajax user in Windows. In my Lubuntu $HOME/Documents/ directory I created a link to the ...
-1
votes
1answer
126 views

Why sudo ./bin/mysqld_safe & on Mac OS X 10.6.8 doesn't ask for password?

I get the following permissions from terminal: $ cd /usr/local/mysql $ ls -l drwxr-xr-x 41 root wheel 1394 29 Apr 00:55 bin drwxr-xr-x 4 root wheel 136 29 Apr 00:55 docs ...
2
votes
1answer
237 views

allow user access via ssh to /var/www/

Context: I am creating a gitolite3 hook for a specific repo, which contains some logic and css foo of my website. so what essentailly happens is Content under /var/www/nginx/ looks like: ...
3
votes
1answer
186 views

Help with giving group permissions to other user's files

I'm a linux beginner using Debian 7 and have created a new user (a website) with an htdocs directory like this: $ sudo adduser website $ sudo mkdir -p /home/website/htdocs $ sudo chown -R website ...
3
votes
1answer
196 views

Can one directory be owned by two groups?

Can one directory be owned by two groups (RHEL 6.2)? I have created one directory: mkdir /opt/shared, then I created two groups: groupadd sales groupadd marketing I added manually to each of ...
1
vote
2answers
34 views

Store a file for all users within a group

If user A is member of group foo, is it then possible for A to share a file for all members within foo without root permissions? chown foo:foo file Is not permitted without privileges. A can say ...
1
vote
2answers
48 views

`ls` fails for directory copied from Win and OSX [closed]

I'm not able to ls on a folder that I have just transferred from win7 to OSX via a FAT32 drive. I don't know how to search for an answer for this issue. I've attempted the following: sudo chmod ...
1
vote
1answer
30 views

How to correct error where 2 out of 3 users on chrooted network cannot gain write access?

I have an SFTP server running on Debian. The directory is chrooted and is set up with privileges as such: /sftp/+---testagent2----writespace 750 | 755 755 ...
0
votes
1answer
74 views

Can't simulate initial login using sudo

$ sudo -iu cyrus sudo: unable to change directory to /srv/cyrus: Permission denied sudo: unable to execute /bin/zsh: Permission denied I don't understand why I would get permission denied for ...
2
votes
1answer
106 views

How to add a read only group permission to a folder that already has a default group, and have it inherited for all newly created files & folders?

In Windows this is easy. I never fully figured out Linux permissions, I have a directory such as this: /Photos The current ACL permissions are as follows: owner: root - full access group: photos ...
2
votes
4answers
72 views

Is there a folder accessible to all process and users at all times?

I have a script that gathers debugging info from the running environment and I need to figure out were I can save that info. It may be called anytime: at boot when the system is running at ...
0
votes
2answers
2k views

Mounting Windows shares using cifs results in “Error:13(Permission denied)”

Ubuntu 12.04.1 LTS, kernel 3.2.0-57-generic Windows Server 2008 R2 SP1 x64 Trying to setup a network share from Ubuntu 12.04 to a Windows Server 2008 R2 however no matter what changes are made the ...
5
votes
1answer
585 views

Apache, Group Permissions and User Uploads

I have a folder named "digitalgoods" with the following ownership -- apache:apache residing outside of the htdocs folder and is therefore not accessible to the public. However I need the same folder ...
0
votes
1answer
54 views

Permissions for non-htdocs directory

I have created a folder outside of my htdocs directory as a means of adding extra security for downloadable digital goods to be sold from within a Magento storefront; so my question is: what ...
1
vote
0answers
32 views

mount: fmask options is not working

Few days ago I did this question. But now I have another problem, related, but new. Scenario: I have a flash drive (vfat) mounted in /media/flash the filesystem node is /dev/sdb1. according to ...
2
votes
2answers
304 views

Permission change to exclusively all folders (or .extension files)

I want to change permissions of all 777 folders to 755 and also change all 777 php files to 644. How can I do this through shell? P.S: all files and directories are in www directory.
0
votes
0answers
50 views

How do I solve rcp errors on Solaris?

I am using Sun Solaris7 for running my ucam software, and I need to load data from my ucam system to one of my plotters that is also running on Solaris 7. When I load the job I am getting the ...
-1
votes
1answer
98 views

How to Always make the ttyUSB0 none root access allowed?

Ubuntu 13.10 64-bit OS. I have a service running using Python serial the application running without root as username. But it has to access /dev/ttyUSB0 , so i need to do every time manually chmod -R ...
1
vote
2answers
62 views

Command to know privileges of a user group

If I run cat /etc/group command or groups username I am able to know the list of groups as group of a particular user. Is there any command through which I could know which type of privileges a ...
0
votes
2answers
72 views

Apache folder permission error

I have a folder name public that I set up Apache to serve files out of, for some reason I was getting a 403 with the error message: You don't have permission to access / on this server. My ...
1
vote
1answer
434 views

Repairing CentOS 6.5 permissions after file migration

I'm running CentOS 6.5 in a VirtualBox VM. Recently, I ran out of space for my virtual hard disk. To remedy this, I decided to create a second hard disk for the /usr directory. I mounted that and ...
0
votes
1answer
132 views

Solaris 10 Default File Permissions

I've created an NFS mountpoint with rw permissions. How do I set new files in a directory to be created by a specific user/group with certain permissions?
1
vote
1answer
67 views

user accessing and permission denied

I had a user john in fedora 19 usergroup marygroup useradd -g marygroup mary usermod -a -G marygroup john In John terminal: cd /home/mary Permission denied cd /home ls -l drwx------. 11 john ...
2
votes
0answers
49 views

What privileges do I have (find out within bourne shell script) [closed]

I am hacking away on a remote helper for git. The script is in bourne shell. I wanted to create some temporary directory in the home dir. For some reason I get permission denied. From my shell ...
1
vote
1answer
97 views

temporarily disabling one's own filesystem write permission

I can't believe there is no simple solution to this (because it seems potentially a very useful feature to me), but so far I couldn't find any. I'd like to be able to (temporarily) turn off my own ...
1
vote
0answers
44 views

Disable commands for users [duplicate]

I have users that login automatically via ssh to a script I defined instead of a shell. The script basically launches a program which has a shell-escape in it which would allow the user to execute ...
5
votes
3answers
2k views

External hard drive permissions - ext4

I have an external USB 3 disk drive (2TB capacity) that is most likely going to be moved from machine to machine. The disk has a GUID partition table and an ext4 partition. I am unable to write to the ...
3
votes
1answer
200 views

directory changes permission when mounted

I want to mount a samba sghare to a directory in my home dir. I have created it but mount the share as root. Upon mount, the owner of my dir changes to root and my user doesn't have permission tow ...
3
votes
1answer
262 views

fail2ban permission denied on script

I've just upgraded from RHEL 5 to 6.5 and setup fail2ban anew. I can't seem to get my custom action to work now, supposedly because of a permission issue. I wan't to know what am I doing wrong, and ...
3
votes
3answers
261 views

Convert the permissions in `ls -l` output to octal [duplicate]

I want to convert the output of ls to octal permission bits. I think of the shortest and clearest way to implement that excerise: Let's say that we have as input: total 1 drwxr----x 1 user2 workers ...
4
votes
4answers
908 views

Is making /var/log directory read only on debian linux safe?

I am installing a really small server which got a 512mb CF cars as HD. Not only I haven't plenty of space, but I would like to minimize the writes to disk. I would like to completely clear the ...
8
votes
1answer
657 views

Why cannot a user change group ownership of his own files? [duplicate]

Why cannot a user change the group permissions of files which he owns. Let's suppose I have user martin: $ ls -lAd /home/martin/ drwx------ 8 martin martin 4096 Apr 20 01:06 /home/martin/ For some ...