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

Give read-only access to specific folders?

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users ...
0
votes
0answers
8 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 ...
2
votes
1answer
108 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
79 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
63 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
46 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
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 ...
0
votes
2answers
29 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 ...
5
votes
3answers
3k views

find files which have a higher permission than xxx

I want to find all files which have a higher permission than e.g. 640. Perhaps this would work with a find and exec command. But my knowledge isn't sufficient for such a task.
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. ...
2
votes
4answers
2k views

Why is the default umask value for useradd in openSuSE set to 022?

I recently built a very simple test environment with oepnSuSE. As I tried to configure a shared directory, wihtout using ACLs, but with SetGID on that directory instead for some reason, I noticed ...
3
votes
2answers
445 views

NFS partition mounted as read only

(Disclaimer: I've read "NFS sharing is read only" and I think it's not the same problem) I have just setup NFS on my raspberry (Raspbian) and I'm trying to access it from OSX. So far so good, I can ...
2
votes
3answers
265 views

I can not remove folder from server

Accidentall I created the folder on remotely server (Server OS is Linux) using php: mkdir("folder_name",0); Now I can not delete this folder from server. I think this is from permission, because 0 is ...
0
votes
1answer
32 views

executing any program in mc ends putty session if not logged in with root

Maybe there is a simple-obvious solution for this but I dont know how to make mc to be able to execute programs when I press enter/double click on it and I am not logged in as root... the executable ...
-2
votes
0answers
17 views

change rights in usb key? [closed]

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
2answers
4k views

How do I set permissions recursively on a dir (with ACL enabled)?

For example, I want to give my colleagues write access to certain directory. Let's assume that subdirectories in it had access rights 775, files 664, and also there were some executable files in the ...
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 ...
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 ...
0
votes
0answers
20 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 ...
4
votes
5answers
11k views

Device is Mounting as Read Only (Can Copy Files as Root)

I am attempting to mount my Amazon Kindle, 3rd Edition. It automounts correctly and when I run mount -l, I get the following output: /dev/sdg1 on /media/usb0 type vfat ...
1
vote
1answer
18 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 ...
3
votes
3answers
5k views

How to check which Apache group I can use for the web server to write?

I'm trying to make Wordpress work. I currently have this error message: Could not create directory. /var/www/html/wp-content/upgrade/theme_name when trying to upload a theme. This is the ...
1
vote
3answers
148 views

Can't ssh to a machine

All of a sudden, I couldn't ssh to a machine to which I used to ssh earlier. Consider I am ssh-ing from A to B. Output when I run ssh root@ip_addr_of_B I get: Permission denied ...
4
votes
3answers
4k views

“echo 3 > /proc/sys/vm/drop_caches” - Permission denied as root

I am currently having some issues with the cache. It is a little too much right now so I wanted to clear it. I googled and found this little command: sync && echo 3 > ...
4
votes
1answer
56 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. ...
5
votes
4answers
5k views

How to restore default group/user ownership of all files under /var?

I accidentally changed /var owner/group to my username and then changed it back to root, but not all the /var folders' owners are root, so is there anyway to change back owner/group of files/folders ...
0
votes
2answers
23 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
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 ...
3
votes
1answer
101 views

Write-only permission for a directory doesn't allow to rename (move) files inside?

In fact, I would like to ask more general question -- "what does write permission for a directory allow you to do exactly?" -- but let's approach it with a concrete example. It is a long question, if ...
8
votes
5answers
2k views

How to run part of a script with reduced privileges?

I have the following problem: On every machine running Postgresql there is a special user postgres. This user has administrative access to the database server. Now I want to write a Bash script that ...
20
votes
2answers
3k views

Is there any difference between mode value 0777 and 777

I saw a code change at work, where the mode values were changed from 777 to 0777 to make nfs setattr work. What is the difference in the 2 values?
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
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 ...
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 ...
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
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 ...
2
votes
1answer
51 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 ...
1
vote
0answers
10 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 ...
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 ...
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 ...
9
votes
1answer
593 views

User permissions inside and outside of LXC containers?

I'm running some services inside of Docker LXC containers on my server and I'm beginning to actually do serious things with them. One thing I'm not clear on is how user permissions work inside and ...
4
votes
1answer
79 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 ...
2
votes
1answer
30 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------ ...
23
votes
9answers
5k views

Why use `chmod 644` instead of `chmod u=rw,go=r,…`?

I've been working on *nix for a few years now, and one of the things I just can't get used to is octal permissions in code. Is there some other reason than line length to prefer chmod 644 ... over ...
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 ...
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, ...