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)

3
votes
1answer
374 views

mpd/mpc and NTFS mount

My music directory is kept on an NTFS mount as it was the simplest way to have it on both window and *nix machines. I am trying to get mpd/mpc to actually read the directory and getting no where. ...
3
votes
2answers
191 views

Permissions to print directly to USB printer

I've a netbook with Linux. I've a usb/serial printer and I added the line chmod 666 /dev/tty* to rc.local and it prints straight after a reboot. When I close the lid of a netbook for a while and then ...
3
votes
1answer
78 views

Why does a manual mount set different file ownership?

I've been using the terminal for almost everything: in fact, I often don't even log in through the interface, I use the tty1 and go to the web with text-browsers. So, the external drive doesn't ...
2
votes
4answers
2k views

permissions 755 on /home/<user>/

I am wondering why by default my directory /home/<user>/ has permissions set to 755. This allows other users to enter into directories and read files in my home. Is there any legitimate reason ...
1
vote
2answers
2k views

Resetting user directory permissions etc [closed]

My "Linux mint Debian edition" installation worked well until I used a live-CD to boot and then copied some files back and forth to and between the hard drive and a usb device. Now it says that it is ...
1
vote
1answer
287 views

Can't sudo after lock password, can I recover from that?

After setup ubuntu with default settings, It allows user to login with password, so I use passwd -l [username] to forbid password login both in ssh and console. But when I use sudo to execute ...
3
votes
2answers
276 views

Seems that chown is allowed to non root user

We are using LDAP authentication and probably another things that I did not understand well, in our company so maybe the following questions are result of this. I have found strange behavior of chown ...
2
votes
2answers
59 views

Directory permissions vs file permssions

If I have two users called john and sally. Both are part of the users group. john creates a directory with permissions 775. sally then puts a file there with 644 permissions. Even though the file ...
0
votes
1answer
704 views

What does the “flags” field in getfacl mean?

I'm trying to set permissions on a server between users using ACLs. When I'm checking their status on one of directories using getfacl dir10, it shows: root@svn:/srv/resources/somedir# getfacl dir10 ...
1
vote
2answers
841 views

What's the idea behind rm not removing non-writable file by default?

What's the idea behind rm not removing non-writable file by default? Every time you want to remove a file that is non-writable file for current user but you have a write permission on directory get ...
1
vote
3answers
167 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 ...
2
votes
2answers
2k views

Unable to run 'sudo chmod +w /etc/hosts'

I am logged into my remote VM (running out of ESXi) as user xyz. I wanted to change my /etc/hosts to add some network names that were not visible by default. I first tried to run sudo vi /etc/hosts ...
2
votes
1answer
1k views

Zabbix-agent: cannot stat 'filename.log': [13] Permission denied

I have installed Zabbix-server and zabbix-agent and trying to add trigger to check log file. But in /var/log/zabbix/zabbix_agentd.log I got the same error every time: 10832:20131008:125634.180 ...
3
votes
2answers
593 views

Who is file owner if the file is created using sudo command?

I logged in using my username ravbholua: ravbholua@ravbholua-Aspire-5315:~$ echo $LOGNAME ravbholua I create file named a1: ravbholua@ravbholua-Aspire-5315:~$ echo>a1 ...
4
votes
1answer
1k views

Using setfacl to create recursive permissions for Apache with rsync

I have a Dokuwiki installation locally, which I regularly sync to my server with rsync. I'm also going to give a friend of mine an ssh account, and host his public Dokuwiki installation. However, I'm ...
3
votes
1answer
97 views

New webserver: What all user accounts should I create and permissions to provide for

This is a followup on my question here. I am setting up the first webserver and am fumbling with what user accounts to create and permissions to provide for better security. Below is what I have. ...
1
vote
2answers
3k views

Screen is terminating

I have installed screen on Fedora 19. When I test the command as root remotely through SSH, it works perfectly. For instance, if I enter screen a new terminal emulator is started and waits for ...
2
votes
1answer
76 views

ftp: in remote machine, file owner changes with the change in username used for logging in the remote machine

It was a wonder for me to see why the file owner changes when I log in the remote machine with different usernames. Please see: 1st I logged in a remote machine using username : peacenews. I entered ...
2
votes
3answers
236 views

Apache2 permissions issue

I have changed my DocumentRoot to /home/user/www. To achieve that I have just changed the 2 occurrences of the path at /etc/apache2/sites-available/default. The permissions of /home/user/www are ...
1
vote
1answer
34 views

permission on a user I added locally

I added a user to my Mint (Ubuntu) Desktop so that he could ftp files that I can share – I am peter he is john, so we have /home/peter and /home/john. I want to have full permissions on his home ...
1
vote
0answers
69 views

How come the postfix user can't even read its own files?

I have a Postfix configuration file. Let's assume it's named /etc/postfix/somefile.cf. I have run the following command as root to change ownership of the file to the postfix (105) user: ...
6
votes
1answer
415 views

how to make malware file readable with “No read permission on file” on linux ext-4?

There is an ongoing campaign of sending virus/trojans in e-mail messages faked as being from HSBC Bank, Lloyds TSB, Amazon etc. The trojan/virus is sent in a application/zip attachment. I've saved ...
1
vote
1answer
412 views

How to prevent users from renaming files while providing write permissions on Linux [closed]

For some special purpose, I want to prevent non-root users of the Linux Server from changing or renaming the filenames. However, they can modify and write to the contents of the file. How to do this ...
2
votes
1answer
62 views

Getting IO privileges in Linux

I have installed flashrom software. When i try to run sudo flashrom command it gives me "Could not get I/O privileges (Operation not permitted). You need to be root" error. Also I tried su command to ...
1
vote
2answers
257 views

Linux - Windows 8 - Samba - Can see dir and contents but not create

have the following setup Raspberry pi with samba installed and running Windows 8 machine that can see the samba share, access the proper DIR, see all contents In the smb.conf file, at the base of ...
4
votes
2answers
183 views

Find and differences between -perm /6000 and -perm /u+s

I have been trying to find setuid executables using a `one liner'. The line I first tried was: find / -perm /u+s -type f Then I found a line which is similar but gives different results: find / ...
1
vote
0answers
165 views

Samba permissions settings ignored?

I have a CentOS 6.4 fileserver running SerNet Samba 4.0.9 with these global settings (not overridden): read only = No force create mode = 0777 force directory mode = 0777 inherit ...
1
vote
3answers
481 views

udisks2: permission denied

When I mount blank btrfs partition in Dolphin, I get "Permission denied" on write. You can see that it's mounted on /run/media/%username% dir which is correct, but owner is root. [doctor@doctoror ...
0
votes
1answer
84 views

Making a FAT disk write-only or “hidden” [closed]

I have a USB device that by itself writes to some built-in flash memory. When it's plugged into a PC, it works like a USB mass storage device with a FAT fs. The device cannot be configured in any ...
1
vote
1answer
358 views

Process owned by root can't write files

I'm running a program (syslog-ng) that must read and write several files in a given path. It was failing at start, claiming that it is unable to open a file in that path. Please, assume this ...
0
votes
1answer
24 views

Correct way of updating plugins for webapplications hosted on linux

I am developing a plugin for PrestaShop, it works but the issue is with its autoupdate. Sometimes it fails on customers server due to permissions issues. The plugin is downloaded as a zip(using ...
0
votes
1answer
22 views

Adding supllimentary group so that user can have access

I am using opensuse. I have created a directory projects under /srv and set its permissions to 770 and chown -R wwwrun:developer /srv/projects/ I have used usermod -a -G developer username but I ...
0
votes
2answers
737 views

fstab mount drive as my /home

I am trying to: mount my 2TB external USB hard drive as my home directory at /home/peter ensure that the home directory is owned by me (not root) do all this automatically at bootup Currently: ...
1
vote
1answer
295 views

Equivalent of full control, modify and write in linux

What is the equivalent of assigning Full control, Modify and Write permission, in Windows, to a particular user and group, in Linux? chgrp, chmod and chown seems quite limited in this case.
3
votes
2answers
243 views

File Permissions mode ending in @ or + [duplicate]

I was changing file permissions and I noticed that some of the permissions modes ended in @ as in -rw-r--r--@, or a + as in drwxr-x---+. I've looked at the man pages for chmod and chown, and searched ...
1
vote
1answer
882 views

How to setup SVN server permissions properly?

I use Debian 7 and have Subversion installed. I can't figure out what permissions and owners to set to the repositories once I create them. I want to have 2 types of repositories: 1) svn/private/* ...
1
vote
3answers
487 views

Can't change group of files on mount point

I have mounted some ntfs drives. /etc/fstab looks like this: /dev/mapper/fedora-root / ext4 defaults 1 1 UUID=b6603ac8-e004-4cd6-b141-9bc95409e32a /boot ...
1
vote
0answers
72 views

How do I recover from “chown -R myuser /usr” on OSX? [closed]

I installed git and ruby 2.0 using homebrew then terminal immediately stopped working. On opening, it gives me the following error: login(89809,0x7fff7bac5960) malloc: *** error for object ...
6
votes
3answers
240 views

Under what scenarios would I want to set a SUID bit?

I'm struggling to wrap my mind around the concept of SUID bits and why they're would be useful. For example, let's say I have a program: -rwsr-xr-x 1 root root 12364 Jan 12 2013 ...
0
votes
2answers
232 views

setfacl access issues

I have a list of users (user1,user2,user3,superuser). user1, user2 and user3 belong to a usergroup called normalusers . Now, I need to issue the access control list command for the user superuser to ...
1
vote
1answer
869 views

mount.cifs not respecting file permissions in Ubuntu 12.04.2 LTS

I am attempting to mount a cifs drive in standard Ubuntu 12.04.2 LTS using the following line in /etc/fstab: //server-name/share-name /mnt/archive cifs ...
5
votes
3answers
7k views

Allow a user to read some other users' home directories

I am new to system administration and I have a permission related query. I have a group called administration. Inside the administration group, I have the users user1, user2, user3, superuser. All the ...
2
votes
3answers
2k views

Allow a user to view the home directory of other users via sudo

I am new to system administration. We have a lab set up where we have a server and client machines. The client machines have LDAP users which has the work area for all the users in the centralized ...
1
vote
2answers
221 views

Can't run su after changing permissions to su file

I am running Linux Slackware 14.0. I wanted to allow to do su only to the members of wheel group, so I modified the permissions of /bin/su and /usr/bin/sudo files to this: bash-4.2# ls -la /bin/su ...
4
votes
3answers
845 views

How to find a file with specific permission of a specific user?

How do I get a list of all the files which permission is "read and write" for a specific user. For example, when I go on the desktop of my mac, then right click on file "A", then "get info", then on ...
5
votes
1answer
155 views

How to allow to run su instantly after I added the user to the appropriate group

I have the su executable with the following permissions: bash-4.2# ls -la /bin/su -rws--s--- 1 root wheel 59930 Sep 14 2012 ./su When I am logged in as a user, not in the wheel group and try to ...
2
votes
2answers
195 views

Linux shared FTP: one file must not be deleted

Two users: A1:x:1001:1002::/home/A1:/bin/sh A2:x:1002:1002::/home/A1:/bin/sh One group: A1:x:1002: FTP server: fresh install ProFTPd OS: fresh install Ubuntu Server 12.04 One folder (/home/A1) ...
5
votes
3answers
759 views

Maintain (or restore) file permissions when replacing file

I have a command that accepts a file as an argument, modifies the file, then writes it to the file name specified in the second argument. I'll call that program modifyfile. I wanted it to work "in ...
0
votes
3answers
546 views

Create a file as a different user and group

I have a bash script with downloads some files, and then needs to set the owner to apache, and the group to a particular user group (that apache is not a member of). Is there a way to create those ...
7
votes
1answer
933 views

why have programs like su access to /etc/shadow

Normally only root can access /etc/shadow. But programs like su and sudo can check passwords without running as root. So the question is: Why can these programs access /etc/shadow without privileges? ...