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)

0
votes
0answers
50 views

phpstorm 7 permission error

i have phpstorm 7.1.4 IDE on manjaro(arch base linux). when i run php code with phpstorm on : http://localhost:49193/ex.php in page : No input file specified. my code not run or execute. i check ...
0
votes
0answers
118 views

Can't write via FTP despite apparently correct permissions

I have the same problem no matter if I'm using pure-ftpd or vsftpd. In Debian Wheezy. The user can browse the directories in /var/www/foo, but when the file transfer is uploading I get '550 cannot ...
2
votes
1answer
129 views

How do I set up NFS to respect user and group permissions?

After creating an NFS share between two servers, lb1 (nfs-client) and data-server1 (nfs-kernel-server), users with permission on the NFS server do not have access on the NFS client. data-server1 ...
2
votes
1answer
36 views

Confusing Directory Permissions

Environment Ubuntu 14.04 LTS Desktop Permissions /media/gal_db$ ls -al drwxrwx--- 6 admin shared_disk 4096 Aug 15 13:31 . drwxr-xr-x 6 root root 4096 Aug 13 12:54 .. drwx------ ...
0
votes
1answer
21 views

Convenient way to upload a file to a server's application directory?

I very often need to upload some kind of file to a server, to put some application directory somewhere. Since my user account is of course unprivileged, I generally have to do this: scp file.txt ...
1
vote
1answer
83 views

How can I write to my Samba share?

There are a million versions of this exact question out in google land but I've been unable to solve my problem (sorry). I have created a Samba share on Ubuntu 14.04 (actually xbmcbuntu) that I can ...
0
votes
1answer
24 views

How to group alphanumeric permissions

As an addition to my previous question: Which is more widely used: chmod 777 or chmod a+rwx. If I were to use the chmod a+rwx (which I wouldn't in the real world) format, but I wanted to use the ...
1
vote
1answer
37 views

Is there any useful purpose for directories with permissions -w-?

Being aware of this answer I wonder whether there is any useful purpose for write-only directories, i.e. directories with permissions -w-. Any directory-"writing" operation I know of (such as creat, ...
0
votes
0answers
18 views

Fail to log in HPC nodes (Permission denied)

We have four login nodes in our HPC system, namely al1, al2, c1 and c2. I could log in all the four nodes previously. But recently I suddenly cannot log in al1 and al2 while I still can log in c1 and ...
10
votes
4answers
2k views

Which is more widely used: chmod 777 or chmod a+rwx [closed]

Out of the two options to change permissions: chmod 777 file.txt chmod a+rwx file.txt I am writing a document to send out to our customers, detailing that they need to change the file permissions ...
4
votes
0answers
116 views

Tracing executable without read permissions

I found some surprising behavior on Ubuntu 14.04 when using strace on an executable, which I do not have read permission on. I wonder if this is a bug, or if some standard mandates this obscure ...
1
vote
1answer
27 views

Two users, full access to same folder

I have a laptop running Arch Linux, and an owncloud-client. I have an owncloud server on my local network. When outside of my local network, I must use a dyn dns URL to get to my server. When on the ...
2
votes
1answer
84 views

What permissions should I set for an executable I'm likely to share?

I'm writing a bash script that does a little house-cleaning for me (clearing the log files from any Rails projects in the current directory). I'm making it executable, and I'm not sure what best ...
1
vote
1answer
75 views

Limit access on external drive mounted and used by sftp

I've got a unix user "popolo" who is chrooted in /srv/ftp/ and I mount my two external drives by /etc/fstab in /srv/ftp so I have /srv/stp/dude and /srv/ftp/sweet. Popolo has access to those drives ...
4
votes
1answer
141 views

Why do I get “Permission Denied” errors even though I have group permission?

I'm trying to run a game called "Dofus", in Manjaro Linux. I've installed it with packer, that put it under /opt/ankama folder. This folder ownership (and for every file inside it) is root user, and ...
1
vote
1answer
42 views

How does ACL calculate the effective permissions on a file?

I ran the following command to give the wheel group rwx permissions on new files and subdirectories created: [belmin@server1]$ ls -la total 24 drwxr-sr-x+ 2 guards guards 4096 Aug 27 15:30 . ...
1
vote
0answers
54 views

Can't install WP plugin with wp-user:www-data 775 permissions [closed]

Setup is on Ubuntu 14.04. Apache2 running under www-data Wordpress was installed with wp-user:wp-user directory ownership. I added wp-user to the www-data group and change group ownership of the ...
2
votes
1answer
45 views

Permissions to change only directory content and not itself

We have a directory and want to protect that from remove and rename, but we need to be able to rename, remove and create contents. What we can do?
0
votes
2answers
57 views

confuse about User:Group what is the best for /var/www, and Crontab user?

I'm new on linux server. I have 2 question that I'm confuse about this. 1 1. user:group now I chown my /var/www/html like this. my nginx.conf is set server{ user www-data } and in terminal I set ...
3
votes
1answer
345 views

How do I fill my password automatically from .bash_profile when running command as sudo?

I know I could just put something like sudo mypassword in my .bash_profile, but I don't want to run every command as root. I want password to autofill under following circumstances: only the ...
3
votes
1answer
66 views

Software like Iceweasel and LibreOffice wont run without root/sudo

I recently decrypted my home directory by making a backup of my home directory, deleting the directory, and then replacing it again with the backup (followed a guide). Ever since, I can no longer run ...
0
votes
2answers
188 views

Why setuid does not work on executable?

I know that enabling setuid on scripts has security issues and so is inactive by default, but expect that it works for executables. I created and executable which shows uid as an output following ...
2
votes
3answers
57 views

What is the system-level effect of file permissions? [closed]

I know that r means read permission, w means write permission, and x means execute permission in the output of ls -l, like -rwxr-xr-x. But My question is what is behavior difference on operation ...
0
votes
1answer
161 views

What does “execute” permission on a folder means? [duplicate]

I have read this topic, which gave me some info but I feel I am not fully getting it. What does the execute permission actually means on a folder? I fully understand what it means on a file, but on a ...
6
votes
1answer
196 views

monitor file permission changes

How can I figure out which process is changing the permissions of a file? on a Debian server, I have the problem that something is changing the permissions on /dev/null every day at 6:20 (since 3 ...
3
votes
2answers
175 views

Terminal is not opening in Linux after accidental permission overwrite [duplicate]

I am using Debian. I tried to give a permissions to /opt/folder by using chmod -R 0755 / filename Unfortunately it changed the permissions of a lot of folders in the root filesystem. So it leads ...
3
votes
1answer
739 views

startx cannot open /dev/fb0: Permission denied

When I try to start my WM using startx, I am unable to because the permission of something called /dev/fb0 are restricted. From home/user/.local/share/xorg/Xorg.0.log: [ 198.569] (--) controlling ...
1
vote
1answer
191 views

Permission denied when trying to run script as other user

I'm trying to run a script as another user that starts a piece of software (Etherpad), which is run like so (from root): su -c "/var/www/etherpad-lite/bin/run.sh" -s /bin/bash etherpad but I'm ...
1
vote
1answer
36 views

Make that only members of a group can access a specific disk

All members of group vip should be allowed to read,write,execute to a specific disk. Currently, only the logged in user is allowed to access such disk. What is the correct way to allow members of ...
3
votes
2answers
335 views

Deleted /tmp accidently

Accidently, I ran sudo rm -r /tmp, is that a problem ? I recreated it using sudo mkdir /tmp, does that fix the problem ? After I recreated the directory, In the places section in the sidebar in ...
2
votes
2answers
72 views

Preserve ownership with rsync and nonexistent user

I have two computers with the same user, me@Home and me@Work. I usually kept their folders synced by bringing Work home (it's a laptop) and rsyncing over LAN. However, now I'm not bringing Work home ...
3
votes
1answer
160 views

Move preserves ownership of source files not allowing writes

Kindly Consider: $ id # Me uid=100(user1) gid=200(group1) groups=200(group1) $ ls -l tnsnames.ora # So user1 has only read permission on below file. -rw-rw-r-- 1 oracle dba 411024 Jul 28 2010 ...
0
votes
0answers
113 views

CPU Frequency Scaling Monitor: No passwd, all cores at once

I use MATE 1.6.2 and CPU Frequency Scaling Monitor 1.6.2. I would like two things: Get rid of the need of the root password to change the CPU settings. To affect all cores at once. The problem is ...
3
votes
2answers
112 views

Cannot delete File on Fedora

I have a file with following permission: -rwSr-s---. 1 1634630331 1818884080 118784 Jun 29 1970 DailyUpdateClass.class If I try to delete this file with root login, I get error. rm: cannot remove ...
2
votes
0answers
96 views

Logrotate no longer reads symlinked configuration file due to non-root ownership

We are currently upgrading from Ubuntu 12.04 LTS to 14.04 LTS on our ruby on rails application servers, and have noticed that the log files are no longer rotating. On both machines we have a file ...
3
votes
1answer
50 views

Why does `mkdir -pm` not set the permissions I asked for?

I created some directories with the command mkdir -pm 700 /tmp/a/b/c I was surprised to find that /tmp/a had permissions 775 rather than the 700, I had requested. Is there some reason for mkdir to ...
2
votes
1answer
93 views

What privileges are needed to delete a read-only btrfs subvolume?

I want to delegate non-root user to delete read-only subvolumes (snapshots). What exactly capabilities/rights I need to grant, so that he can remove his own read-only snapshots? I've already ...
2
votes
2answers
657 views

How to remount as read-write a specific mount of device?

How to remount as read-write a specific mount of device? (one folder) The file is "Read-only file system", rw-r-r, so it not allow to change permissions. I need to replace that file, then change ...
6
votes
2answers
122 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 ...
1
vote
2answers
39 views

How would you assign read-only permissions to run ls -l /proc/{pid}/fd for processes you don't own

How would you assign read-only permissions to run ls -l /proc/{PID}/fd for PIDs (processes) you running as another user. Ideally, you wouldn't be able to do anything else and you would not have ...
1
vote
1answer
102 views

Why do I get “Permission denied” when redirecting the output of sudo echo “xyz” to a file? [duplicate]

Why do I get -bash: test: Permission denied when I run sudo echo "xyz" > test The directory permissions are: drwxr-xr-x 3 root root 4096 2014-08-05 16:26 I have no problem creating a ...
3
votes
1answer
61 views

How to set special folder permission on proFTPD?

On one of my servers, I have ProFTPD installed in Debian 7. I need special permission only for 2 specific folders. These are: append - user must be able to append data to an existing file rename - ...
3
votes
1answer
214 views

Force new permissions on files after rsync from seedbox

I have a seedbox-account which I use for torrenting. I have set up a cron job that uses rsync to download all files from the seedbox to my 14.04.1 ubuntu server. The download folder is a samba share, ...
1
vote
2answers
259 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 ...
1
vote
1answer
263 views

how to make logstash read kannel log

I got logstash installed on ubuntu 12.04 using the apt repository. But logstash is not reading any document. In logstash log there are teh following: ...
0
votes
1answer
79 views

How do I delete a file in a read-only directory?

I've got a directory and a file in it, with the directory marked as read-only: $ mkdir directoryname $ touch directoryname/filename $ chmod a-w directoryname I cannot delete the file, even if pass ...
2
votes
1answer
93 views

What relationships do tie ACL mask and standard group permission on a file?

At first I create a file and check it's standard permissions and ACL entries: $ touch file; ls -l file; getfacl file -rw-r--r-- 1 user user 0 Jul 30 16:26 file # file: file # owner: user # group: ...
2
votes
1answer
68 views

How can I set device rw permissions permanetnly on raspbian?

Im using Raspbian (distribution made for Raspberry Pi based on Debian). I have some scripts that use i2c. Normally only root has read and write permissions for i2c. Im using this command to add i2c ...
0
votes
1answer
188 views

Debian file's permissions for secondary's group of user

I am installing a proftpd server on a debian dedicated server, In order to be able to update some website files in this folder : /var/www/website I have added a new user : my-ftp-user This user's ...
-1
votes
1answer
22 views

A command showing if I have the right to perform writing?

I'm searching for a command which only says if the current user has r-rights (read) on the file passed as a parameter. This command could be something like haveIRights -x <file> and it has to ...