Tagged Questions

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

can not chown a file from my $user to another $user [duplicate]

I am on slackware64 v14.0 and I have file that belongs to me: -rwxrwxr-x+ 1 nass shares 137934 Mar 7 00:06 myfile.csv* I am a member of the "shares" group. The folder that contains myfile ...
1
vote
1answer
178 views

How can I prevent some users from deleting files in samba?

I have a sample directory shared out with Samba which all users should have read/write access to. I would like to prevent some of these users from deleting any files (even the ones they create). This ...
5
votes
2answers
493 views

Group memberships and setuid/setgid processes

Processes which de-escalate privileges via setuid() and setgid() do not seem to inherit the group memberships of the uid/gid they set. I have a server process that must be executed as root in order ...
3
votes
2answers
619 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
1answer
109 views

setting default umask and user:group on directory

I have a directory data and I need to set default umask and ownership for all directories/files (both existing and future files). I want all files in data to have ownership root:martin ans ...
2
votes
4answers
1k views

Unable to write to a GPIO pin despite file permissions on /sys/class/gpio/gpio18/value

This is on a Raspberry Pi. Here's the output of sudo ls -lL /sys/class/gpio/gpio18: -rwxrwx--- 1 root gpio 4096 Mar 8 10:50 active_low -rwxrwx--- 1 root gpio 4096 Mar 8 10:52 ...
3
votes
2answers
311 views

Changing default permissions for wget?

I'm using a PHP script to call shell_exec and execute wget to download some files to /var/www/dir/. (Internal tool, so security isn't much of an issue) The directory has 777 permissions. But when I ...
1
vote
2answers
278 views

Running a bash script as root prevents asynchronous execution?

The script below get's executed differently if run as a root user. #!/bin/sh gnome-terminal -x sleep 10 echo 'Why must I wait for sleep to finish?' If its run as a regular user, message is ...
1
vote
1answer
41 views

Find which directories each group can access

I need to take the /etc/group file (RHEL) and check what high level subdirectories each group has access to. Here is a made up example: Group 100 - \xxx\xxx\xxx Group 150 - \xx\xxxxx\x Is that ...
2
votes
2answers
1k views

Allow NonRoot User to Mount a Particular NTFS External Hard Drive

I have a 4TB external hard drive connected to an Linux server. The fstab permissions on this drive are set so that only one particular non-root user has access to it: ...
5
votes
1answer
81 views

When a member of multiple groups, how do I set the default group for newly created files?

With umask, I can determine the permissions for newly created files. But if I am a member of multiple groups, how do I set the default group for newly created files? This question seems relevant, ...
2
votes
1answer
392 views

How do I allow user permissions to data on a Couchpotato and Sickbeard Plugin using Freenas

Trying to setup permissions for the plugins sickbeard / couchpotato. I’ve read almost every thread google / the forums have but haven’t really found a solution yet. I’m assuming it’s the data here: ...
-1
votes
2answers
161 views

ls -ld list files inside a folder which is having only execute permission

In Linux, I gave only execute permission to a directory named test. after switching to the directory test, when I run ls -ld it was showing some hidden files. Please explain this.
0
votes
3answers
33 views

Set the default permission

When I create a file, the permission is 644 (user rw, group r, other r). How can I make the default file generated to have permission as 664?
0
votes
2answers
35 views

How to create a directory which will have access to the user who is installing a package?

I am packaging one of my projects on Debian. The project expects a directory to be created at XDG_DATA_HOME or ~/.local/share/ where the data files will be kept. Now I am trying to create and feed the ...
-2
votes
2answers
37 views

I don't have writing access to a subdirectory in /

I have a server running under Debian wheezy. I want to create a directory in /. I can't without running sudo mkdir myDirectory. Once in /myDirectory, I can't write anything or create a repertory. I ...
1
vote
1answer
652 views

Can't edit sources.list as root

I cannot edit/move/delete the sources.list file, despite being root. When I do ls -la /etc/apt it reports this: root@nibelung:~# ls -la /etc/apt/ total 356 drwxr-xr-x 6 root root 4096 Feb 28 ...
2
votes
1answer
66 views

Using FACLs to restrict default group but allow others

So, I'm running RHEL 6.x with acls enabled, etc. and I've been fighting this ACL issue for a bit now and I can't seem to get it down. I'm trying to make it so that: /var/www/html/* are owned ...
0
votes
1answer
407 views

Need to grant two users to an AIX server to just one folder [duplicate]

Ok, in our environment, most users (including myself as one of the unix admins) don't actually have admin rights directly on the aix servers. We login to a front unix server as ourselves without root ...
2
votes
2answers
649 views

Giving www-data permision to Dropbox subfolder?

I want to give my website the permission to read files & folders from a Dropbox subfolder. I think I have added the correct permissions, but I can't get the www-data user to get access to the ...
0
votes
1answer
67 views

User sharing in Unix

How does Unix or Linux stop other users from accessing or modifying each others files? I know permissions are a part of it. Is there a specific concept in use?
14
votes
6answers
4k views

Can root/superuser read my read-protected files?

On shared unix hosting, if I have a file sensitive-data.txt and I issue: chmod 600 sensitive-data.txt Can root user still read my file? Specifically I'm wondering if it's safe to store my password ...
3
votes
1answer
414 views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore [duplicate]

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 ...
0
votes
0answers
71 views

Cpanel directory chgrp issues

I'm struggling to get a directory to work with user:group. After creating the directory via WHM I've logged in via SSH and set: chgrp -R developers mysitedirectory Which results in a 500 internal ...
3
votes
2answers
107 views

Accidentaly changed the permissions in / [duplicate]

Accidentally did : chmod -R 777 / Now, RHEL 6 is not booting up. What do I do? I have a DVD and can go into rescue mode. Can someone explain how do I reset all the permissions ? Update ...
0
votes
1answer
75 views

Permissions help?

So I've set up a Wordpress site on my server. The problem I'm having is that Wordpress creates new folders to sort content uploaded from the Dashboard by day. But, somehow the server doesn't have ...
4
votes
1answer
142 views

How to set a directory's permissions for group read/execute access

I am running Arch and have just install XAMPP. I have change changed my document root to /srv which is a separate EXT4 partition. I have set the Apache HTTP server to use a group called "http". I have ...
4
votes
3answers
1k views

granting write permissions to a group to a folder

How can I grant write permission to 1 group ? I have 2 users (alex and ben). alex is member of group alex and of group consult. ben is member of group ben and of group consult. I want to grant read ...
2
votes
1answer
82 views

chmod 600 fails silently

Here is what happens: $ chmod 600 foobar.txt $ ls -l total 1 -rwx------ 0 sampablokuper sampablokuper 13 Feb 19 21:00 foobar.txt Why is the last line not reading as follows? -rw------- 0 ...
3
votes
3answers
8k views

What is the right file permission for a .pem file to SSH and SCP

I have tried to SSH into my AWS ubuntu server and copy the directory to my local machine. Throughout the process I experience different file permission errors (noted below). Is there one specific ...
2
votes
1answer
419 views

NFS Ownership/Permissions

I'm trying to get NFS working properly on a DD-WRT install using OTRW2. I can see and mount the share from the client. But when I do, the mounted folder changes it's owner to root:root and so my ...
5
votes
2answers
4k views

Getting new files to inherit group permissions on Linux

I am having a problem with permissions on a Linux server. I am used to BSD. When a directory is owned by a group the user who owns it isn't in such as www-data, files created in it will be owned by ...
1
vote
1answer
149 views

No write access to $HOME directory

While loading the KDE UI Linux boots to kdm, then I get a "bad" sound and black screen. Logs reveal the line in the title. I can ctrl - alt - F4 just fine from there. Tried: chmod 755 on ...
3
votes
1answer
2k views

File inheriting permission of directory it is copied in?

I have files created into my home directory with only user read permission (r-- --- ---). I want to copy this file to another directory /etc/test/ which has the folder permission of 744 (rwx r-- r--). ...
0
votes
1answer
82 views

Is it possible to add granular permissions on a folder without installing acl?

I have a folder public_html with several subfolders on Ubuntu 12.04 server. Is it possible to add different permissions on individual subfolders for two new individual users without changing the ...
1
vote
1answer
218 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
1
vote
1answer
349 views

Why root can't open pseudo terminal device? (permission denied)

Using a non-root user, I'm creating a pseudo terminal with socat like this: socat -d -d PTY,link=$HOME/.wine/dosdevices/com1,raw,echo=0 PTY,link=/tmp/com1-pty,raw,echo=0 and I need a root ...
3
votes
3answers
476 views

Which command to use to find all files/folders with non-default permissions?

Suppose I have a folder, containing other files and folders, and I'd like to find out recursively which subfiles and subfolders have non-default permissions (i.e., not 644 or 755). Which command can ...
1
vote
3answers
942 views

Run Linux “motion” app as user

I'm trying to run Motion app on a Linux box. For various security reasons, I'd rather run it as regular user than sudo. However, when I run "service motion start" without the sudo in front, it says: ...
2
votes
2answers
35 views

Specialized access control for directories in RedHat

I have a requirement where I want to change permissions for a directory so that the directory owner (user/group) would be able to create files inside the directory and modify them, but won't be able ...
2
votes
1answer
106 views

Can I get “Permission denied” when running out of space?

I am running smrtanalysis software which is very demanding in terms of cpu, RAM and storage. After running for couple of hours, I got following error message: IOError: [Errno 13] Permission denied: ...
4
votes
3answers
809 views

Permission denied to change gid(group) of a file I own

It appears I still miss some things about the way permissions work. I am on a debian 7 system btw. just now I have this file of which I downloaded and it belongs to myuser:myuser, that is both user ...
1
vote
1answer
58 views

How do I identify the user that is attempting to create a file?

I have a PHP script that is attempting to create a file, but it can not because of permissions. I would like to identify which user the system sees as the one requesting to create the file. I would ...
0
votes
0answers
34 views

Correct permissions for a .desktop file

Some file managers do not allow the execution of a .desktop file if it doesn't have the executable bit set, however in most cases I see such files as just 0644, without the executable bit. When ...
4
votes
1answer
63 views

allowing users to access certain ports on server

I have an RHEL 6 system which has 20 users. I have 20 ports on which separate versions of a service is running. I want user a to access port a, but not other ports. Is there a way to do this? ...
0
votes
1answer
117 views

How to set automatically permission at automount without mask

I store my data on a NTFS parition to share it with my Windows. I use the dmask,fmask option in my fstab entry to avoid rwx default permissions to everyone, for coherence, security, and also because ...
2
votes
1answer
4k views

Root Cron Won't Run Script (permission denied)

I've edited my root cron tab to periodically execute a script located in a particular user's folder using this command: sudo crontab -e When cron runs the script, this is the output: sh: 1: ...
7
votes
2answers
2k views

USB drive permissions when automounting

On Debian there is the common problem, that you try to plug an ntfs formatted USB harddrive and then can't write to it as a regular user to it because the directory belongs to root. A little time ago ...
0
votes
3answers
303 views

How to set up wireshark with correct permissions [duplicate]

Ubuntu 13.10, Saucy Salamander here. I am trying to install wireshark in order to monitor USB activity with a certain device. The problem is that wireshark does not have access to the USB bus (or any ...
0
votes
2answers
776 views

Allow non-root user to read/write /dev files

In my /dev folder, I would like the following files to be user readable and writable: /dev/ttyUSB0 /dev/gpib0 How do I do this without using chgrp? I can edit /etc/udev/rules.d but I do not know ...