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
1answer
98 views

write() system call ignores file permissions

I made a very simple program in C which writes "Test string" into file named "file.txt": root@3:~# cat test.c #include "unistd.h" #include "string.h" #include "stdio.h" main() { FILE *fp; int ...
5
votes
1answer
70 views

Ability to add files to a directory but not remove existing files

Is there some permissions setup that would allow a user, say, john, to add a file to a directory d, but not be able to remove an existing file owned by another user, say, root? My understanding is ...
4
votes
1answer
62 views

Why are execute permissions required to rename files in a directory?

Say I'm the owner of a directory and I have read and write permissions, but not execute permissions, where the directory structure is like this: x/ (drw-r--r--) y (-rw-r--r--) ...
3
votes
1answer
42 views

Fix broken permissions on /var (or any other system directory)

Long story short, I destroyed /var and restored it from backup - but the backup didn't have correct permissions set, and now everything in /var is owned by root. This seems to make a few programs ...
0
votes
0answers
7 views

cant edit anything on xampp as sudo user [on hold]

I’m new to Linux was an avid Windows user until recently trying on an old system seeing some major differences and converting, so I apologise if this question seems simple. I’m running the latest ...
0
votes
1answer
13 views

Permissions of CIFS Mounts

I have some sensitive data on a network share hosted on a Windows machine (drive D on mymachine.mywork.com) that I need to mount, as follows: sudo mount -t cifs mymachine.mywork.com :/D /mnt Will ...
3
votes
0answers
10 views

Migrate an unprivileged LXC container between users

I have an Ubuntu 14.04 server installation which acts as an LXC host. It has two users: user1 and user2. user1 owns an unprivileged LXC container, which uses a directory (inside ...
-2
votes
0answers
17 views

change rights in usb key? [on hold]

I have this USB key. When I'm using it in my computer I can't do anything on it, i.e. I can't delete or add files/folders to it. I tried to change rights by chmod -r 777 but it doesn't work! Can you ...
1
vote
1answer
23 views

Root is receiving “operation not permitted” error when trying to move a a users .bash_profile

This are the permissions on the RHEL5 machine: [root@server1 belmin]# ls -la | egrep '\.(bash_profile)?$' drwx------ 9 belmin belmin 4096 Sep 16 14:29 . drwxr-xr-x 40 root root 4096 ...
0
votes
1answer
22 views

Mysql Database files read access

Right now I'm trying to set read access to the files of one of my databases. I'm using debian with basic mysql installation so the database location is /var/lib/mysql. I want ...
0
votes
0answers
18 views

Having Permission Problem over SFTP Pantheon File Manager

My linux distro Elementary uses pantheon file manager, it let me connect with my VPS using the sftp connection, looks like: Its a great feature, but i am facing permission problem in order to edit a ...
0
votes
1answer
29 views

Samba share open for all to all

thanks for viewing at this question. I have a CentOS 6.5 server with a share that is and should be accessable for and from everyone. All content placed on that share should be accessable by everyone. ...
1
vote
1answer
17 views

How to add sftp permission to user/client?

I am somewhat new to linux, so please bear with me... I'm on a new Centos 7 setup. So far I have logged in via ssh as root: added a new user gave user full permission via visudo added user to the ...
2
votes
1answer
21 views

search files using group permission

If i need to search files using group permission I use the following command echo **/*(AIE) where AIE stand for read/write/execute. For owner and group permissions the qualifier used are rwx and ...
4
votes
1answer
51 views

Provide sftp read/write access to folder and subfolders, restrict all else

I need to provide user access to Ubuntu 14.04 Server, only limited to certain folder. To enjoy the ssh security and not to open up new service and ports (ie, ftp), I'd like to stick with sftp. ...
0
votes
2answers
25 views

What UNIX File permissions would be necessary for someone to GCC compile my .C program?

I have written a .C program and submit this file to someone in UNIX. However, I didn't change the permissions for the file, beyond whatever they were when it was created. I am simply wondering if i ...
0
votes
2answers
22 views

How to make partitions with in /home/user/ writable by user?

I have a partition scheme like this: / /home/ /home/user/files/ When logged in as user, I cannot save any files at /home/user/files/. The only solution I can find is to create a new subdirectory as ...
0
votes
1answer
66 views

Create files that both www-data and myuser can edit

I have a directory to store invoices - drwxrwxr-x 2 me www-data 49152 Sep 9 13:38 invoices There are two applications that write files to this dir. PHP web application -rw-r--r-- 1 ...
0
votes
2answers
64 views

New user can't access their home

So I'm adding a new user on a machine to give a family member some remote storage. After setting up their login and home directory. Here's the stat File: `/home/heather' Size: 4096 Blocks: ...
0
votes
2answers
28 views

How to give sftp access to sub-directory only not to parent

I want to give SFTP access to user tom for directory /var/www/html/my_project/. while I don't want to give any SFTP access to directory /var/www/html/. currently /var/www/html/my_project/ and ...
0
votes
1answer
14 views

Unzip (Info-ZIP) Permissions

Is there a way to invoke unzip (from Info-ZIP) on a Linux system without having it restore the permissions stored in the zip file? The zip files I'm restoring are enormous, so going back over the ...
0
votes
2answers
25 views

How to give rights to user on server to use programs

I installed a bunch of applications via SSH on a Debian Wheezy server. Now I want to give one extra developer rights to use one folder. I added her to a new group "myappdevs" and gave the group ...
1
vote
0answers
9 views

After restoring a backup my permissions seem to be borked

I made a complete backup of the system with "rsync -aAXv", and set up my encryption. After restoring everything, and booting up and trying to login, openbox didn't want to start, and "startx" didn't ...
3
votes
1answer
23 views

chroot into a sshfs folder

I am trying to chroot into a sshfs-mounted directory: mkdir remoteroot sshfs remote:/ remoteroot/ sudo chroot remoteroot/ but I get chroot: cannot change root directory to remoteroot/: Permission ...
0
votes
0answers
20 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
22 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
49 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
28 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
20 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
44 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
21 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
32 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
9 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
1k 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
94 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
21 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
76 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
35 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
78 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
25 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
35 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
35 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
30 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
190 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
41 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
99 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
53 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
64 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
147 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
162 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 ...