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
votes
2answers
46 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
37 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 ...
2
votes
2answers
2k 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
66 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
336 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
29 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
102 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
93 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
21 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
132 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
3answers
163 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
50 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
219 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, ...
2
votes
1answer
482 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
379 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
93 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
60 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
104 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
104 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
54 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 ...
-8
votes
1answer
65 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
89 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
79 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
28 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
163 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 ...
4
votes
2answers
2k 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
40 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 ...
2
votes
1answer
114 views

Why can't a group member create a file in a directory with 760 permissions? [duplicate]

I have an account with secondary group membership in a group that owns a directory. The directory is chmod 760, which should allow writing to the directory, but not listing it. However, this is not ...
2
votes
1answer
100 views

How to set up users, ownership and permissions across local and remote servers?

I've been learning the Linux OS over the last year or so and I am still very confused on how permissions vary from different configurations. I am trying to set up my local development environment and ...
0
votes
2answers
150 views

Solaris 11.2 extended permissions shown by ls

I have a file that shows up as having extended file permissions. ls -V /usr/share/X11/app-defaults/XScreenSaver rwx------ 1 root root 53 Dec 2 21:52 ...
1
vote
1answer
27 views

How do I move a vmware guest machine to another user?

I have 2 users in my computer running Arch Linux. I recently moved a virtual installation of windows 7 from one user to another. I changed the owner of the moved folder to the new user recursively. I ...
0
votes
0answers
49 views

Difference in the permissions of the file created by SSH and SFTP

I have a question and want to know how can I fix it so that the files created by SSH and SFTP by always have the same permissions in the case is 0644 for files. It is possible to make the permissions ...
0
votes
0answers
44 views

Permission mystery: NetATalk on Debian requires rename?

I've got a Raspberry Pi running OpenHab for my home automation. OpenHab has a designer that can configure the system. Up to now I've been running NetATalk on the Pi, sharing the files to my Mac which ...
0
votes
2answers
154 views

Delete/repair files with weird permissions/owner/group

I have the following files (output of ls -l): ?rw------- 6144 1684128777 2049835008 50331648 Jan 1 1970 image1.jpg br-xrwSrw- 25120 1987343475 1936028517 110, 110 May 30 2032 image2.jpg ...
0
votes
2answers
65 views

Running two instances of Apache as separate users — permission denied

I followed these instructions (somewhat) on configuring two instances of Apache -- we have internal apps and third party programs (WordPress, etc) running on same VM so for security and performance ...
0
votes
1answer
36 views

Permissions Issue for A Symlinked Directory

I have a web application running on Ubuntu 14.04. The app's deployment service creates separate users, groups and permissions automatically when deploying the app to my server on AWS. The app runs as ...
2
votes
1answer
87 views

Let root read all files on NFS directory, even though server has root_squash enabled

I have a NFS directory that is used by multiple users, and hosted on a NFS server that I do not control. I would like to back up the contents of the NFS directory from my client machine. My first ...
2
votes
2answers
169 views

Move file to another user's home directory (without sudo)?

I have a couple of files that I want to move to another's user home directory. I don't have permissions to write to that user's home directory, but I know his password. I know how to copy the file ...
0
votes
2answers
124 views

bash permissions - unknown problem

So strangely enough I have the following problem in a directory inside a script: #!/usr/bin/env bash MAIN_DIR=/home/ec2-user/dir/ LAST_DIR=$(ls -d -t ${MAIN_DIR}*/ | head -1) When I run it I get: ...
2
votes
2answers
113 views

Set default permissions by file type (at least in Vim) [duplicate]

When I create a new script, I always have to manually add executable permissions with chmod +x foo.sh. My default permissions are set to 644, and but I'd like any file with extensions like .sh .py to ...
0
votes
0answers
46 views

SMP Linux regular user service command permissions

I'm having a weird situation with three of our cloud based VMs. They differ slightly from our other systems. The systems we are not having issues with read as follows: Linux nyc-dev 3.2.0-4-amd64 #1 ...
1
vote
3answers
115 views

how to set up permissions of “download” dir to prevent execution of exploit program

There is a host with a local service that receives data from a remote location (via e.g. http) and saves it locally under /var/log/data/ in some mydir. $ ls -al /var/log/data drwxr-sr-x+ 4 root ...
2
votes
1answer
77 views

Is it possible to access any file or dir within a non-accessible directory? [duplicate]

Say I set my home /home/john directory as not readable for any other user. But I've forgotten to do so with some files within that directory, say ./.bashrc or ./Downloads/Presentation.ppt. Now, if ...
1
vote
1answer
128 views

What are all possible letters for Unix file permissions?

I'm trying to write a regular expression to match Unix file permissions returned by ls -l command. Here I found that all possible letters for the first field are d,c,l,p,s,b,D. Now, what are all ...
0
votes
1answer
89 views

New Linux server user permissions

I have been given ssh access to a new Linux server which has nothing more than the LAMP stack installed on it. It's down to me to install things like Drush, phpmyadmin etc and general configuration of ...
0
votes
0answers
155 views

samba share subdirectory prevent rename/delete operation

I have a samba share (ArchLinux with kernel Linux comp001 3.18.7-2-ARCH #1 PREEMPT Thu Feb 12 12:53:57 MST 2015 armv6l GNU/Linux and samba version Samba version 4.1.16)mounted in /mnt/data/, that is ...
0
votes
1answer
50 views

linux (general) file/directory rename/delete operations under os permission scheme

In linux, do file/directory rename/delete operations belong to write permission?
-2
votes
2answers
3k views

How to set the permission drwxr-xr-x to other folders?

I have few directores inside a folder like below - teckapp@machineA:/opt/keeper$ ls -ltrh total 8.0K drwxr-xr-x 10 teckapp cloudmgr 4.0K Feb 9 10:22 keeper-3.4.6 drwxr-xr-x 3 teckapp cloudmgr ...
0
votes
1answer
22 views

Desktop effects/graphics settings probably get reset after each reboot

I am using PC Linux OS, full monty(KDE) and probably after an update, I have started experiencing the following behavior: After each reboot, the Kresource migrate tool starts up, even though Akonadi ...
0
votes
4answers
61 views

What is the command to find the read/write permissions for a single file?

I know that ls -l lists the permissions of every file in a directory but what is the command if I want to see the permissions of just a specific file?