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
0answers
12 views

chown .bash_aliases

I need to append would be aliases to the .bash_aliases file through the echo command For example I echoed this command echo 'cp -r .git ls | grep -v .gitignore ~/env/' >> ~/.bash_aliases to the ...
2
votes
3answers
32 views

Can a file be edited with the 'write' permission on it but not on its parent directory?

Suppose the owner/user doesn't have the write permission on a directory but he has it on a file under it. Can the file here be edited or not? If yes, is there any situation where the file cannot be ...
1
vote
1answer
27 views

Can I restrict sudoer nopasswd to directory?

Maybe I should rephrase - what is the most secure way to accomplish my needs? Details I am using WinSCP to modify my Apache document_root. The directory /var/www/html has an owner and group of root. ...
1
vote
1answer
8 views

sane does not work as saned but as root it does

I have a plug computer that I want to use as scanner server using sane. It already worked with a different plug, so I know for sure that the scanner and sane are workable together. If I issue ...
3
votes
2answers
56 views

Setting correct permissions automatically for certain file type when file is copied from non-Linux file system

The main reason I want this is my heavy use of dircolors, especially for ls --color=auto. For example, whenever a .mp3 file is copied from NTFS, it will have permissions set by umask 022 which ought ...
2
votes
0answers
11 views

Cleanup old /dev/pts files?

My company has a policy that sweeps all files on our AIX servers to see if any are world writeable. They are upset because there are some files in /dev/pts (a few with me as owner) that are world ...
0
votes
1answer
27 views

Unable to delete a file on different user's directory

I've two user's abc & xyz and the user abc has been added to the group xyz via usermod -a -G xyz abc and here the file permission on home directory of xyz i.e /home/xyz: drwxrwxr-x 2 xyz xyz ...
1
vote
1answer
33 views

Difference between owner/root and RUID/EUID

I am relatively new to the concepts mentioned in the question and reading about them from different sources only makes them more confusing. So this is what I understood so far: When we are given ...
-1
votes
0answers
41 views

Copy file with target folder owner/permissions

I want to copy a file to a directory with another owner: sudo cp /home/ubuntu/.ssh/authorized_keys home/deploy/.ssh As a result: -rw------- 1 root root 408 Mar 19 20:02 authorized_keys ...
2
votes
1answer
29 views

Why am I seeing a number as owner / group instead a name?

CentOS 6.x / OpenVZ Recently my VPS provider moved my OpenVZ container to a new server. After that move, I've noticed that files/directories for one of my user accounts show an odd owner / group. ...
0
votes
1answer
17 views

File/dir permission conundrum

I support a dev server for WordPress sites. Server is using the Nginx/php-fpm stack. I'm struggling with setting up file and directory permissions so that www-data has read and write access while our ...
2
votes
2answers
27 views

File owner changes after editing a group editable file

I use archlinux x64. I'm studying web development and in order to edit files served by Apache under srv/http, directory which Apache serves, I created a group adding my user and Apache's user so I ...
0
votes
1answer
35 views

Mount permissions

I want to do this: Mount a network folder. Read files from that folder. I'm doing something like: mount //10.19.6.40/folder/ /mnt/folder/ -o ...
3
votes
0answers
34 views

tor works when its in /usr/bin but not in /usr/sbin/

I have this very strange behaviour, I have two servers both running Ubuntu 14.04. I've installed tor on both. on machine A tor was installed (by default) in /usr/bin/ and works without any issues. on ...
1
vote
1answer
19 views

default owner and group for symlink and chown pass-through

I have two questions but they are very closely related to each other. I have a new Debian server by Linode, and my previous server was a CentOS run by Hostgator. I use this command quite frequently ...
1
vote
1answer
31 views

How directory permissions remain same after mv command?

There are two user A & B. sharing same server. A has created a directory with permission 700 and both user and group are same i.e. user A e.g. drwx --- --- A A temp_dir/ Now user B has ...
1
vote
1answer
74 views

bash bad interpreter and permission denied

I installed RHEL 5.1 on a virtual machine. I would like to install VMware Tools, but I keep getting an error. I am performing the installation via the tar procedure. I get the following error: bash: ...
0
votes
0answers
66 views

SCP stopped working: Permission denied, please try again

I was using scp to transfer files from server A to B (both CentOS with WHM and their usernames are equal). nohup scp -rpC xaa2 username@serverIPB:xaa2 I did it many times and then, suddenly, it ...
2
votes
2answers
39 views

How does one permissibly access files on non-booted system's user's home folder?

I have a dual boot system with Mint 17.1 and Centos 6.6 I want to access a file in my CentOS user's home directory from Mint. (I cannot boot CentOS right now.) What is a clean/standard method for ...
0
votes
0answers
9 views

What's a good setup for a web server with limited developer accounts?

If possible, I want to avoid giving root access to developers. What would be the best directory/user/permission setup to make sure they can access the web server directories, but nothing else? Should ...
2
votes
3answers
41 views

Set group permissions as owner permissions

I need to set the same permissions of owner to group recursively to all elements in a directory.
1
vote
0answers
29 views

OS X: Apply inheritable ACL permissions to pre-existing subfolders and files

I have a folder with numerous ACL permissions set. Most of these include file_inherit and directory_inherit permissions and therefore should be, and are, automatically propagated to any new ...
0
votes
0answers
24 views

User and Group Permissions Confusion

I am running the 'motion' program on Ubuntu 14.10 as a daemon, user motion. I have it set up to capture images and save them to /var/www/html/motion/images/<dynamic-dated-folders>... I also ...
-1
votes
2answers
32 views

Prevent a user from deleting the folders and files in his own home

How to prevent a user from deleting the folders and files on his own home directory? In my scenario user can create & modify the folders but user should not delete them. How could we achieve this? ...
1
vote
0answers
28 views

In the Linux Kernel what file/process controls the assignment of permissions to memory pages?

A given memory page may be writable, readable or executable. What kernal source code file in the linux kernal describes the setting of these rights? What process or kernal data structure would set the ...
1
vote
1answer
84 views

permission issues while doing ssh setup in cygwin

I'm trying to setup ssh-host in cygwin. Getting the below error: *** Warning: The permissions on the directory /var are not correct. *** Warning: They must match the regexp d..x..x..[xt] *** ERROR: ...
-1
votes
1answer
38 views

permission denied on running script despite +x

Script is on exec partition (under /home/~~~ ) and have +x flag (-rwxr-xr-x ). executable on bash shell (not with script) but not on script. script is quite simple. #!/bin/bash data=cat ...
0
votes
0answers
51 views

Centos 7, Postgresql 9.4 Failed to Read Permission Data Directory in mounted Partition

I've a problem with start PostgreSQL 9.4 on Centos 7 Server. Because the partition /var/lib/pgsql/9.4/data/ (which contains PostgreSQL data is full) so I want to change to another partition. ...
0
votes
0answers
17 views

What are the correct permissions for a non-root user in Red Hat 7?

I imported a pre-made Oracle Developer VM, from Oracle, into VirtualBox and the oracle user (which is not root), can't do anything without using sudo, for the most part. For example, any file I want ...
2
votes
2answers
57 views

File with permissions ---S--l---

Can some one explain what the meaning of these attributes: ---S--l---? When and why need to set this attribute? and for what? $ ls -ltr ---S--l--- 1 root root 0 Mar 10 ...
0
votes
0answers
20 views

How are ownership and permissions of tmpfs folders created via /etc/fstab determined?

I've created a folder /mnt/ramdisk. I've got the following line in /etc/fstab to create the ramdisk at startup and mount it to /mnt/ramdisk: tmpfs /mnt/ramdisk tmpfs ...
1
vote
0answers
19 views

Is there a way to backup and restore ACL file and folder permissions on linux the way that there is using icacls in Windows? [duplicate]

In Windows you can do this (backup and restore ACL permissions) can you do this in Linux? And to clarify, I mean ACLs in Linux, I do not mean the default permissions modified with chmod / chown.
3
votes
2answers
37 views

Back up and restore file permissions

Is there a way to back up and restore file ownership and permissions (the things that can be changed with chown and chmod)? You can do this in Windows using icacls. What about access control lists?
3
votes
4answers
92 views

SUID accidently removed from /bin/su file

It is a production server - CENTOS 6.1 Some user having root access in the past had logged on to the server and removed the SUID bit from the /bin/su file and then exited root. Now we are not able to ...
0
votes
1answer
27 views

How do I make something launch graphically as root without going to the command line and running sudo?

I can't save anything because of a Permission Denied error. Do I have to use sudo before I run any program, like sudo gedit? I can run Eclipse as root, but I am trying to see what the correct way to ...
1
vote
2answers
48 views

Why does httpd give an error following a symlink into my home directory on Fedora?

I've just re-enabled an app after OS change. Symbolic link to it is located of course in /var/www/myapp . After changing permissions to 0775 (even 0777 temporary), changing owner to apache:myuser, ...
1
vote
0answers
55 views

Execute a .exe on a samba share

I have a linux machine and a windows machine, the linux machine has a samba share with a .exe file on it. I can read and write files from the windows machine to the samba share, but I cannot execute ...
1
vote
2answers
69 views

How to get file permission in octal

I have set of linux folders and I need to get the permissions of the folders numerically. For example in the below directory, I need to what is the permission value of the folder... Whether 755, 644 ...
1
vote
2answers
81 views

execute a script with some permission

In myscript I have a line that does this : chmod 660 somefile_given_as_argument_to_myscript I gave the members of a group the right to exectute the script. (chmod 770 myscript) but when they ...
2
votes
3answers
44 views

setting default permission for directory

Before anyone tags this question as duplicate, I would like to emphasize that I would like to know something extra... I found a way to set the default file permissions for all files created in a ...
2
votes
1answer
56 views

Linux user groups and file system permissions

Assume I have groups G1, and G2, and user U. User U is a member of both groups, but G1 is it's primary group. In my file system there is a folder F which is accessible by G2. Now if U wants to ...
1
vote
2answers
44 views

FTP straight to directory, rather than making it relative to FTP users home directory?

I've set up an FTP server using vsftpd on a Centos 5.10 machine. This is my target directory on the server: /var/www/supercoolstuff I can connect from a Windows XP machine using WinSCP then ...
1
vote
0answers
25 views

files & directories are not share on remote server with 777 permission using sshfs

I am successfully mount the remote directories on my local directories, I have to created folder and files with 777 permission so others can able to access this files so that's why I used umask=000 ...
-6
votes
1answer
37 views

What does the -R switch mean when used with chmod or chown commands?

I'm just trying to get up to speed with permissions in Linux. I've come across an example which uses "-R" when changing permissions and ownership of a directory. What does the -R mean?
1
vote
1answer
28 views

How to give user access to specific folder in home directory

I'm trying to set up a 'deploy' user on my VPS (running CentOS 6 and cPanel) which needs to have access to a specific folder from another home directory: /home/nazeem/public_html/staging. I've ...
1
vote
1answer
30 views

Directory permissions for web server

Hi all I'm fairly new to permissions in a web server environment so please bear with me. I'm experiencing a problem (I believe) having to do with permissions to a directory on my server. The file ...
0
votes
1answer
23 views

user access to private directory

User1 should have write access to to download a file “person” to rooted directory, /bucket, but not being allowed to do anything else to the directory. User2 needs read access to file “person” in ...
1
vote
1answer
42 views

Set hostname without root, and without CAP_SYS_ADMIN

I have an application that I want to be able to change the hostname in Linux. Currently doing so by running the hostname command. I don't want to set CAP_SYS_ADMIN either. I also don't want to edit ...
3
votes
2answers
124 views

What is nobody nobody user and group?

On my server (Synology DS212) some files and folders have nobody nobody users and groups. What are the characteristics of this user and group? Who can write of read this file? How can I change it ? ...
1
vote
0answers
19 views

Dealing with git permission errors on root mounted partition

I am trying to clone a git repository from my home directory to a cifs partition, but I keep getting this file permission error. [cguest@devserver groupmount]$ pwd /mnt/groupmount [cguest@devserver ...