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
10 views

How to gain ownership of external HDD (and all files/folders) mounted to /mnt

I've plugged in a USB Hard Drive to my new Debian Jessie machine. I've got it to auto-mount by updating /etc/fstab: UUID=21AE-9B96 /mnt/local/ext001 vfat defaults 0 2 ...but it's owner is root and ...
1
vote
2answers
131 views

Cannot edit crontab as non root user

When I use the command crontab -e on my Debian server as a non root user (in this case as postgres), I can't edit it because of "/tmp/crontab.SJlY0Y/crontab" [Permission Denied] crontab -l on the ...
0
votes
1answer
20 views

What permissions should each file under .ssh have?

What permissions should each file under .ssh have? I just experienced some glitch caused by .ssh/config not having 600. What permissions other files there should have?
6
votes
2answers
108 views

Folder with ONLY write permission is useless… right?

Having worked with Linux for years, and finding myself with some free time, I decided to revisit some basics. So I re-read the stuff about permissions (without checking source code), and its special ...
5
votes
3answers
365 views

Why is dd not protected against writing on the active disk ?

I use dd a lot. I live in a contant fear of making a mistake one day, for example writing on sda (computer disk) instead of sdb (USB disk) and then erasing everything I have on my computer. I know dd ...
1
vote
1answer
21 views

Noip “Can't locate configuration file”, but the file is there

I installed Noip and ran the command which created the config file /usr/local/bin/noip2 -C and then I ran the run command /usr/local/bin/noip2 and it returned Can't locate configuration file ...
10
votes
5answers
6k views

Is there a web based converter between rwx and the octal version?

I can never remember what the conversion is from something like rw-r--r-- to 644. Is there a simple web based converter between the 2?
0
votes
0answers
32 views

Protect folder with password [on hold]

I want to do the following: I want to protect the directory "foo" located in "/ var / www / foo" so that any user can create a directory, I read a tutorial where they use a tool called EncFS to ...
1
vote
1answer
31 views

Moving physical disk from local computer to network server

In my Debian GNU/Linux based workstation I have a big nice disk (3TB), apart from my ssd where the OS is installed. I recently got an intel nuci5 and set it up as a home server, together with my ...
0
votes
1answer
24 views

What has priority - owner/user vs group permission? [duplicate]

I have just run into the case in which the owner-group of a file has more permissions than the owner-user of a file. user1@pc:/tmp$ ls testfile -l ----rw---- 1 user1 user1 9 Okt 16 13:16 testfile ...
4
votes
2answers
120 views

Precedence of user and group owner in file permissions

I just ran into something unexpected (for me) regarding file permissions on Linux (Arch Linux). Basically I have: userX in groupX fileX userX:groupX ---rwx---- What puzzles me: I cannot perform ...
0
votes
0answers
48 views

Unable to write to hdd formatted in anything other ext2,3,4

I am unable to write to my HDD mounted on Ubuntu server 12.04 that are formatted to NTFS or FAT32. However when I format to EXT and Mount as auto its able to write. I tried chmod and chown but the ...
1
vote
0answers
22 views

Granting access permission to normal user to a logical volume of a volume group [duplicate]

When I need to run a program with direct disk access, like read/write from /dev/sdb, I simply add the user to 'disk' group. In this way we don't need to disclose the root account the the user. However ...
4
votes
1answer
244 views

Give a specific user permissions to a device without giving access to other users

I have a card reader attached on /dev/sdb. What I do is giving all permissions to owner, group and the rest of the world, using: sudo chmod 777 /dev/sdb Can I just use another combination, ...
-4
votes
1answer
25 views

Arrange for files created in a directory to belong to the directory's group

How do I set permissions so that whoever creates any files or directories in /directory, the group owner should automatically be the same group owner of /directory? This is on RHEL.
2
votes
0answers
18 views

Maildir permissions for courier

I'm having difficulty with maildir permissions for Courier, an IMAP server I've installed on a box running Debian Wheezy. The mail directory I use is /var/mail/users, with the following permissions: ...
0
votes
1answer
35 views

Grant FTP access to specific directory

I have setup CentOS on a box on my local network and installed httpd, PHP, Webmin (and UserMin) etc. I opted for ProFTPd and have opened up ports for FTP, Webmin and Apache. I can now access Webmin ...
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 ...
2
votes
1answer
2k views

How can ubuntu/truecrypt be configured so users can mount volumes if-and-only-if they have proper permissions on the mount-point?

If I add the line: ALL= /usr/bin/truecrypt to the sudoers file this lets all users mount volumes at arbitrary mount-points. The problem is a user could create a truecrypt volume and then mount it at ...
0
votes
1answer
56 views

Cyrus create mail box gives error permissions denied

On freebsd91 64 bit i installed exim as mta and cyrus as imap server. I use saslpasswd2 root cyradmin -user root localhost localhost> cm INBOX.Sent It gives permissions denied error. In my ...
2
votes
1answer
29 views

Is there a way to prevent git from changing permissions and ownership on pull?

Everytime I do git pull or git reset, git resets changes to permissions and ownership I made. See for yourself: #!/usr/bin/env bash rm -rf 1 2 mkdir 1 cd 1 git init echo 1 > 1 && git add ...
0
votes
2answers
26 views

Do I need to chmod 777 mounted volumes?

I have an openstack VM with the following users: [foo@influxdb ~]$ id root uid=0(root) gid=0(root) groups=0(root) [foo@influxdb ~]$ id foo uid=500(foo) gid=500(foo) groups=500(foo),10(wheel) ...
2
votes
1answer
52 views

can't execute a command even i'm in the group and command is -rwx--x---

I'm in $ORACLE_HOME/OPatch directory and when I type opatch then I get the response as, -bash: opatch: command not found If I do ./opatch, then I get the response as, /bin/sh: ./opatch: ...
0
votes
1answer
23 views

Shell script permission denied despite +x flag

This is an odd one, it only happens on one server (shared hosting, so I have limited access to configuration and logs), but I can't wrap my head around it. I have a shell script which runs some app's ...
2
votes
1answer
377 views

How do I allow user permissions to data on a Couchpotato and Sickbeard Plugin using Freenas

Trying to setup permissions for the plugins sickbeard / couchpotato. I’ve read almost every thread google / the forums have but haven’t really found a solution yet. I’m assuming it’s the data here: ...
1
vote
1answer
172 views

How can I create files in my home directory without root?

I created a user, then using root I created a folder for him. The folder has the same name as the user. When I am logged in as the user, I cannot create files or edit existing ones without using ...
0
votes
3answers
19 views

Setting global browsable permissions for subdirectories (r-x) but making files inaccessible to everyone but the owner and group members

I typically have a directory where I want all users to be able to browse through but having files be unreadable and unexecutable. I see some related questions that do not exactly match what I want: ...
5
votes
2answers
17k views

How to give user root permissions?

I just installed Arch. Works great. I created a new user, logged in with it and now I'm trying to install several thing with pacman. But I keep getting the error: error: you cannot perform this ...
1
vote
2answers
35 views

Why the S_ISUID and S_ISGID mode bits got cleared when the owner or group of an executable file are changed by an unprivileged user

I was reading the man page of chown. I don't understand why S_ISUID and S_ISGID mode should be cleared when the function returns successfully.
1
vote
0answers
38 views

Tomcat unable to create file in dir owned by same group

I have a server running Tomcat, and I need Tomcat to create a file in a particular folder. Tomcat (technically a Java app) runs as the user 'tomcat', as evidenced by top: #top 1251 tomcat 20 0 ...
1
vote
0answers
28 views

id mapping of NFS does not work for all directories

I have an NFS server/client setup. On both server and client, the user me exists and has the same UID. If I mount the /home directory from the NFS server on the client, I see that nobody owns the ...
2
votes
3answers
538 views

What mechanism prevents any user from accessing any other user's files via root?

On a multi-user system, what protects against any user accessing any other users files via root? As context, the question is based on my understanding as follows: There are two commands related to ...
2
votes
1answer
67 views

How to let a user create a directory although not create a sub directory

I'm trying to create a Bash shell script that allows for the transfer of files from a flash device to a archive in which the user will specify. Although I'd like to restrict this user from not being ...
8
votes
2answers
493 views

How to non-invasively test for write access to a file?

In a shell script, how do I easily and non-invasively test for write access to a file without actually attempting to modify the file? I could parse the output of stat, but that seems really complex, ...
0
votes
1answer
30 views

Deluge permissions on a Synology NAS

I installed Deluge through this guide. I have a Synology DS212+. To summarize: I installed Debian chroot (from the SynoCommunity repository). Through that I installed the packages deluged (server ...
0
votes
3answers
132 views

Is there a Linux equivalent of the Windows super-administrator?

Windows has a super-administrator account that has not only elevated privileges to perform protected system functions, but unfettered access to anything on the computer, regardless of user ownership. ...
1
vote
1answer
1k views

Operation not permitted. For root user?

In order to find a workaround for a problem I had yesterday (see the question here) I come out with another experiment. After inserting a flash drive (vfat) and mounting its only partition I ...
2
votes
2answers
408 views

SMB Mount To Windows Server Appears to Lock up. Any Ideas?

We are running CentOS 6.3 with all the latest updates. (Attempt to resolve this issue) The Server I am trying to connect to is a Windows Server 2008 R2 box. Though this applies to our old SBS'03 Box ...
1
vote
1answer
30 views

www-data has access to my home directory files and folders

I've never noticed this before and I have no idea how this has happened but some files and directories in my home directory belong to the www-data group. Here is what I have. drwx------ 2 root ...
1
vote
0answers
27 views

Copying files to a directory shared via ACL doesn't get default mask

I'm trying to setup a simple shared directory on an ext4 filesystem for a group of users to work on. Let's say i just need to give all permissions to all users belonging to the group "workgroup" to ...
107
votes
7answers
7k views

How to chmod without /usr/bin/chmod?

Today I was told a tale by a Unix trainer, a tale where the root password got leaked to the students, and one of the fellas removed the execute permission from /usr/bin/chmod itself. How do you ...
1
vote
1answer
30 views

Find files belonging to a group

Actually I want to find all the files and folders that are under the same group, for example I have this : [test] user1/sam a.txt user9/sam b.txt user4/sam I'm looking for a command ...
9
votes
5answers
25k views

“Symbolic link not allowed or link target not accessible” / Apache on CentOS 6

I've got a brand new CentOS 6 installation, which has a symlink in the document root to my development files: [root@localhost html]# ls -l total 4 -rwxrwxrwx. 1 root root 0 Sep 18 20:16 index.html ...
1
vote
0answers
14 views

How do I recursively apply default ACLs of a directory to its descendants?

If I have a directory with default ACL entries assigned to it, but some or all of its descendant files and sub-directories have access or default ACLs that do not agree with those defaults, how do I ...
1
vote
2answers
58 views

what is the purpose of setuid enabled with no executable bit?

I am trying to understand permissions in detail. I was reading about setuid and it's uses. However, this particular case confuses me. I have made a small script and now I have set the suid bit for ...
1
vote
2answers
44 views

How to check if the “sudo” permission will be necessary to run a command?

Is there a way to determine easily whether I can read or write to/from a given file, or whether I will need to use "sudo" to do so? Running commands unnecessarily as sudo means that those files get ...
3
votes
1answer
106 views

setting default umask and user:group on directory

I have a directory data and I need to set default umask and ownership for all directories/files (both existing and future files). I want all files in data to have ownership root:martin ans ...
0
votes
0answers
33 views

User that can be accessed only from other user account

I have a number of users (23) but I want to create another user that can be accessed only from one of the user account to do some specific task. How can I do it. And obviously this user cannot be ...
10
votes
2answers
820 views

Run a binary owned by root without sudo

I had a question on a job interview: How can you execute (run) the program with the user user1 without sudo privilegies and without access to the root account: $ whoami # user1 $ ls -l ...
1
vote
1answer
24 views

my permission command doesn't work properly

find . a* -exec chmod o+r {} \; find . *d -exec chmod o+x {} \; I want to give o+r to all files that start with "a" and o+x to all files that end with "d", but these lines seem to affect all files ...