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
34 views

Samba4 AD privilege problem

I mounted NFS share to debian. Below following fstab record: //192.168.14.24/estimating /srv/samba/WDEstimating cifs ...
3
votes
1answer
41 views

Protecting files from rm -rf in writeable directory

Say, there is a directory ~/docs with owner boo and group boo and permissions rwxr-x---. Assume there are important files apple.txt and orange.txt in docs which user boo wants to protect from himself ...
4
votes
1answer
54 views

Multi-user permissions setup

I've been trying to figure out a good permissions scheme for my multi-user file server. I currently have about 5 users, each storing files in their home directory. These files are also being ...
1
vote
1answer
26 views

Moving non-writeable files vs moving non-writeable directories

I'm a bit puzzled about the following behavior (Linux, Debian 8.3, ext2 filesystem) test@linux:~$ ls -ld directory/ file drwxr-xr-x 2 root root 4096 Mar 10 18:51 directory/ -rw-r--r-- 1 root root ...
2
votes
0answers
50 views

git push/pull with ssh key

I have a 'git --bare' repo on a linux machine. I wish to allow another user from a different machine to push/pull to it. I have their ssh key. Is there some way I can allow them to execute the ...
3
votes
3answers
98 views

Is giving all permissions to www-data group a good idea?

I constantly have problems with read & write & execute permissions by Apache/me. There is a user "konrad" (it's me) in "konrad" group, and there is a user "www-data" in "www-data" group used ...
1
vote
3answers
61 views

Accidentall CHMOD 755 -R in home user

I was installing LAMP and I accidentally "chmoded" with -R my hole home user folder.... (sudo chmod 755 /home/user -R) but now my desktop themes won't load... I'm Using the Mate version of Debian ...
1
vote
4answers
78 views

Why do I need to set some file as executable?

I never went outside of windows before last week, I was asked to make a VM with elasticsearch/logstash/kibana/jdk8 on it. I'm using a regular non sudoer user. I extracted each tar.gz file and got 4 ...
0
votes
1answer
32 views

Impossible to write files with root credentials

I'm trying to launch a small script which fixes a bug in iceweasel icons. Here is the script. You can find it as a workaround in the bug report for n in 16 32 48; do inkscape -z -w $n -h $n -e ...
0
votes
1answer
69 views

File permissions to access/create/delete folders for multiple users

I'm stuck on setting up FTP read/write file permissions (running FreeNAS). The read/write permissions for each user can follow the current format: Users can read from all folders they have access to ...
0
votes
2answers
28 views

Backup remote data as root

I want to backup all data from a server before I do an Upgrade (Debian). Due to the fact, that there are many user accounts on the server, I thought I just copy all data with scp (scp -r * ...
0
votes
0answers
14 views

Granting access to web deployment directories to a number of users [duplicate]

I have a webserver with a web deployment directory on /var/www. The file and directories are set up with apache:www as owner and group and the permissions are 664 and 775 respectively. Whenever ...
1
vote
0answers
11 views

Example of situation where ACL unaware tools would grant unintended permssions

This document about File ACLs makes mention that the masking mechanism was put in place to solve the problem of ... POSIX.1 applications that are unaware of ACLs will not suddenly and ...
0
votes
0answers
19 views

Kate/Terminal/Chromium/etc. refuse to open

I accidentally ran a GUI (Kate) with sudo--dumb I know--and when closed the application I got this error message: Error: "/var/tmp/kdecache-username" is owned by uid 1000 instead of uid 0 I've done ...
0
votes
1answer
36 views

what exactly means that we have superuser privileges

When we access file, file permission is checked from effective user ID of process. But, how about changing user ID like setuid(), setreuid(), seteid(). On these functions, superuser privilege is ...
1
vote
3answers
96 views

File System Permissions: User who can backup all files

I am setting up an automated backup job for some computers on my network. There is a server that will, daily, run an rsync command to backup each of the other computers. I'd like the user that the ...
0
votes
0answers
33 views

ownCloud permissions wrong

I've got ownCloud running in a FreeNAS jail and it worked flawlessly until I rebooted the system. Now I get an error saying: The datadirectory (/media) is readable for other users. Change the ...
0
votes
1answer
64 views

Correctly mounting windows partition

i have set up a multiboot with Linux Mint 17.3 64-Bit on 256GB SSD and Windows 7 64-Bit on a 3TB HD. I have symbolic links from Linux to the Windows Partition, so my Pictures, Documents, Downloads, ...
1
vote
1answer
27 views

How do permissions on a directory affect files in it?

I just learned something that shocked me, because I did not have a clue it was a fact. If I have a directory with the following permissions: user@host:~$ ls -la testdir total 8 drwxrwxrwx 2 user ...
0
votes
1answer
27 views

What is each group's permissions, and what is the “ranking” of each group (most privileged to least)?

My question is basically the title, but for further clarification with the ranking part, I'm asking about who inherits permissions from who, along with any additional permissions for the group as ...
0
votes
0answers
36 views

How to set correct user group rights to application running with java?

How to set correct user group rights to application using java? There is this scenario: 1) I have created user group and user (the same) - call it "groupgroup" 2) When I create a file with this ...
0
votes
3answers
53 views

Why does reading a device require admin permissions?

I'm trying to create a backup script that saves my thumbdrive as an image. I'm planning on having it automatic. I've always seen the thumbdrive listed as /dev/sdb, and created a script that will save ...
2
votes
1answer
34 views

How do permissions work with the GUI

There are several things that you must have superuser privileges to do from a terminal that can be done from a normal user account via the gui. e.g. Poweroff/reboot mount/unmount media I ...
0
votes
0answers
17 views

sticky bit's misunderstanding [duplicate]

In the book, if the sticky bit is set for a directory, only the user who has write permission can remove or rename files. Also one of the following can do this: Owns the file Owns the directory Is ...
0
votes
0answers
22 views

RH : Unable to change permissions on a mounted FS

I've got a mounted CIFS share on a Red Hat folder where I can't change the permissions. I have some others shares where everything is working fine but for this one, I can't change the permissions. ...
1
vote
0answers
42 views

make ACL to work perfectly

I know there are plenty of questions and answers about ACL and permissions, but to be honest they are so weak to make any coherent understanding! it's just like a mix of unorganized information. Hope ...
1
vote
1answer
55 views

is it an access issue or a permissions issue?

I've been having problems with accessing files these days. In the course of solving this problem, I tried changing the ownership from root to ar.lnx and this is what I got [ar.lnx@host DATA] $ cd ...
0
votes
0answers
31 views

Workaround for running privileged commands from www-data user

I would like to append a string to a file located in /tmp/ from a php script. The command I would like to execute is: sudo sed -e 's/$/,yes/' -i /tmp/a.csv The Problem I can't run a sudo command ...
-1
votes
2answers
40 views

How to give full permission to only and only one user other then owner

I have three users in Redhat 6 machine, tiger gourav sourav User gourav and sourav in brother group. Now user tiger create a directory tiger_gaurav and want to give read and write permission to ...
0
votes
3answers
54 views

User belongs to group, but can't write to folder that's owned by group

Can someone tell me what I'm missing here? I'm in a group that owns the "mediawiki" directory and all of its subdirectories, but I can't write to the folder for some reason. I'm connected to SSH, but ...
0
votes
2answers
45 views

Vim writes to file without having permissions [duplicate]

$ ls sess.vim -lh -rw-r--r-- 1 root root 11K Feb 26 18:52 sess.vim I want this file to be readable for everyone and writable by no one (except by root). Thus I set its permissions to ...
5
votes
3answers
258 views

Watch /tmp for file creation and prevent deletion of files? [duplicate]

I have a binary that creates some files in /tmp/*some folder* and runs them. This same binary deletes these files right after running them. Is there any way to intercept these files? I can't make the ...
0
votes
0answers
20 views

Telegram on Kubuntu 15.10 asks for phone number every time

I've downloaded Telegram from their website and ran the executable, it keeps asking me for my phone number and to insert the pin code I receive , every single time I log in. It's becoming ...
1
vote
2answers
96 views

How to execute a file without execute permissions [duplicate]

Let's say user wants to execute a script test.sh but ls -l test.sh gives -rwxrwxr-- 1 root root 96 Feb 25 21:44 test.sh Now if user doesn't want to make a copy of test.sh (on which he does chmod ...
1
vote
1answer
61 views

Set sudo umask apart from the user calling it

The problem: I set my umask for my user to be 0077. Now I use sudo instead of su when I need super-user access, and the problem is that whenever I execute a software installation using sudo with ...
1
vote
1answer
97 views

How should i change folder permissions during package installation

I'm making a deb package to install a custom application. I changed all files/folders ownership to root in order to avoid the warnings i was getting during installation, and in ubuntu all runs ...
1
vote
1answer
54 views

How to write a file a file via ssh

I want to write a file in the Machine B under /home/test whose permissions are root:root and rwxr-xr-x. I have an account on the Machine B, named testUser. When logged to the Machine B with ...
0
votes
0answers
28 views

Mount directory elsewhere with different permissions [duplicate]

I would like to be able to mount a directory (i.e. /home/user1) to a different location on the same disk (i.e. /mnt/user1_home), but with different permissions so that the mount point ...
2
votes
0answers
50 views

Permissions (ACL) to allow creation of new files only - are extended attributes also needed?

I want to use a directory as a sort of drop-off point, similar to the Public folder in each Mac OS X home directory, that is: certain users (or everyone) should be able to create new files inside this ...
1
vote
0answers
65 views

rsync's “Read-only file system (30)” error

NB: This is a 2-part question: why does an error happen, and how to work around the error. (The two parts are related, inasmuch as the answer to the "why"-question may shed light on the ...
3
votes
2answers
65 views

Give /var/www files access to www-data and my user?

Any folder than I want my php code to be able to save in or any file I want it to be able to modify has to be owned by www-data. This is annoying because everything I create or want to edit without ...
1
vote
0answers
192 views

How to get Tomcat7 to run as daemon on CentOS

I am trying to implement SSL for Tomcat on CentOS 6.7. It's not a tick nesting issue, nor does SELinux apply, as other posts address - at least I don't think they do. The server.xml file has entry: ...
1
vote
1answer
18 views

Return permission in number form of file/ directory [duplicate]

Is there a way to return the file permissions in the format in which they are modified using chmod? For example chmod 755 thisdir then commandx thisdir Would return 755, where commandx is ...
2
votes
2answers
102 views

sudo tar changes extracted files ownership to unknown user

I am running this command: $ sudo tar xvzf nexus-latest-bundle.tar.gz The extracted files belong to an unknown (1001) user: drwxr-xr-x 8 1001 1001 4096 Dec 16 18:37 nexus-2.12.0-01 ...
1
vote
2answers
70 views

Mount doesn't give write permission to user

I just created a new ext4 filesystem on a new drive and I am trying to mount it manually: mount /dev/sdc1 a it does mount correctly, but then only root seems to have write permissions. How can I ...
-1
votes
1answer
49 views

List just the permissions of a file [duplicate]

I want to know how to just check for the permission of a file. I know ls -l yourfile will show you it but I just need the nine permission letters. Thanks
0
votes
2answers
88 views

Unable to read file even though in same group

I created new symbolic link to one file(located in another user home directory) for the user. But unable to read even though the user in same group and the file permissions are 755. ...
0
votes
2answers
62 views

bash file permission error while appending to a file [duplicate]

I am installing Voipmonitor whose setup script has this step: sudo echo " * * * * * root php /var/www/html/php/run.php cron" >> /etc/crontab I am getting this error -bash: /etc/crontab: ...
1
vote
1answer
50 views

Linux: How to mount a drive from command line

I normally mount my drives just by opening it from filesystem. It automatically mount when I open/click on a drive. But I wanted to mount a drive from command line. I did ran this command sudo mount ...
3
votes
3answers
445 views

How to allow only machines with specified ip to login via ssh?

I want to allow only machines with allowed ip(s) to login to my system via ssh. For example, userA can use only ip xx.xx.xx.xx or yy.yy.yy.yy to login via ssh, and no other ip can login as the userA. ...