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
3answers
161 views

How to restrict one user files to another user

On my machine there are user accounts. My question is how to restrict access to ones user files. Meaning no one else can access my files at all. How can I setup this restriction? How many root users ...
0
votes
1answer
146 views

Upgraded from CentOS 6.4 -> 6.5 and now permissions do not seem to work properly?

I allow my non-root user the ability to view my nginx access.log. I upgraded from CentOS 6.4 to 6.5 and now my user cannot view this file but the permissions still look correct. I removed and ...
32
votes
4answers
1k views

Why can't I execute shutdown when the permission is rwxr-xr-x?

I'm in /sbin and I see that shutdown has permissions rwxr-xr-x. Doesn't this mean that anyone can execute it?
5
votes
3answers
2k views

Why are files in a smbfs mounted share created with executable bit set?

I mounted a samba share using the smbmount command: $ sudo smbmount \\\\foo\\bar /mnt/bar -o user=tom When I create new files, they get created with the executable bit set for owner, group and ...
22
votes
2answers
4k views

Is there any difference between mode value 0777 and 777

I saw a code change at work, where the mode values were changed from 777 to 0777 to make nfs setattr work. What is the difference in the 2 values?
1
vote
1answer
601 views

What does the “s” mean in the following permission:“-rwsr-x---”

I know about the different permissions and how to change permissions, etc. But I have just seen one of my files has the permissions: -rwsr-x--- 1 root scott 26974 Dec 8 2010 extjob What does ...
4
votes
3answers
272 views

restrict student account permissions, give faculty access

I have set up two user groups, students and faculty on Ubuntu 12.04 and created a number of students and faculty accounts. The problem is a student can currently see & read all of the files of a ...
1
vote
1answer
44 views

Accessing other folder

I'm having difficulty with groups and permissions. I have user A part of group A that manages a folder F. A second user B part of group B must access folder F and its content. I added user B to ...
1
vote
2answers
449 views

How to set root permission for all users?

I'm a beginner and I don't have any idea about how to give root permissions to all users, I've tried using gpasswd -a sqeeph root but the terminal still displays sqeeph@root
0
votes
1answer
812 views

Can't execute a file with execute permission bit set [duplicate]

Well I'm just too green to Linux, but I'm stuck with a thing that I should know, and I don't. My file has the following permission bits sets: -r-xr-xr-x is owned by root ( but it should not matter ...
9
votes
1answer
2k views

What does a dot after the file permission bits mean?

I performed an ls -la on directory on my CentOS 6.4 server here and the permissions for a given file came out as: -rwxr-xr-x. I understand what -rwxr-xr-x means, what I don't understand is the . ...
2
votes
1answer
110 views

Process overwrite access restriction

I want to run a program so that it can only create new files and not overwrite existing ones. Does something like this exist? $ fsaccess --can read,write --not overwrite --command bash -c 'echo ...
2
votes
1answer
2k views

Linux Wordpress can't write wp-config file

I installed the latest version of Apache2 / PHP / MYSQL on my pc In the directory /src/www/htdocs I created a directory wordpress with all wordpress files. Then, when I tried to create the wp-config ...
1
vote
0answers
221 views

Thunar: “Unable to find or create wastebasket directory” on samba share

I have a samba share directory that is mounted on my machine as: //xxx/home_private /media/home_private cifs rw,noperm,credentials=/home/xx/samba_perm.txt 0 0 When I tried to delete file using ...
2
votes
2answers
170 views

Make script executable from vi/vim

How can I run chmod +x on the script I'm creating in vi/vim so that it is executable? I tried :r chmod +x % but it didn't work.
0
votes
1answer
44 views

Setgid won't work

I'm struggling with the SGID command. Given the following situation: ----rws--- 1 simon simon 233 nov 24 13:52 hosts Why can't a user open/edit this file?
0
votes
0answers
120 views

MySQL Backup folder permissions - Non downloadable by others

I created a PHP script which takes backup of the mysql database every day and then saves it to a folder called "BkPath". All the backups will be saved here. But am trying learn the chmod command to ...
5
votes
2answers
2k views

Why are 666 the default file creation permissions?

As I've found out, when using umask, the highest permissions you can give to files are 666. Which is done by umask 0000. That's because of the default file creation permissions, which appear to be 666 ...
0
votes
0answers
681 views

FreeRadius/Samba/Winbind “reading winbind reply failed” error

I'm trying to set up FreeRadius (on debian 7, samba 3.6.6) to authenticate with AD, and I've successfully joined the the radius machine to the domain (server 08 r2). I can successfully run wbinfo ...
5
votes
1answer
392 views

NFS - What does the “sticky bit” mean?

I'm trying to figure how is the sticky bit used in NFS v3. RFC 1813 says on page 22: 0x00200 Save swapped text (not defined in POSIX). What do they mean by "swapped text"? In "NFS Illustrated", ...
7
votes
1answer
243 views

Cannot expand asterisk without proper permission

Can someone explain to me the following? $ ls -ld /temp/sit/build/ dr-xr-s--- 3 asdf qwer 4096 Jan 31 2012 /temp/sit/build/ $ ls -ld /temp/sit/build/* ls: /temp/sit/build/*: Permission denied So ...
1
vote
0answers
154 views

Squash all UIDs automatically, without “all_squash”

I have a pair of Debian stable boxes sharing /home over NFS. The server used to serve LTSP workstations and has had a long running NFS configuration that never gave me any trouble. The LTSP project ...
6
votes
2answers
10k views

Give user read/write access to only one directory

I'm running a server, and I need to give read/write access to a particular directory to a single user. I've tried the following: sudo adduser abcd sudo groupadd abcdefg chown -R .abcdefg ...
0
votes
1answer
2k views

MySql not accessible by root user

I have a local MySql server. It is started as I can access it with my local user like $ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 66 Server version: ...
2
votes
1answer
255 views

what are the different ways to set file permissions etc on gnu/linux

On Unix a long time back I learned about chmod to set permissions and to allow programs to gain privileges. I have recently discovered extra commands on GNU/Linux: chattr, setfacl, setcap. Are there ...
1
vote
0answers
178 views

Changing file permissions of auto-mounted hot-plugged FAT32 USB partition

Linux can read from, write to and execute files (vfat driver) formatted as FAT32. Auto-mounting (in my case Ubuntu) leads however to all files owned by root and not executable. By changing the file ...
1
vote
1answer
281 views

How to change permissions from root user to all users?

I created a folder on the command line as the root user. Now I want to edit it and its contents in GUI mode. How do I change the permissions on it to allow me to do this?
3
votes
2answers
160 views

How does the 'passwd' command gain root user permissions?

How does Linux know that it has to give euid 0 (uid of root) to only certain process like passwd, setuid, etc. If a process can gain root permissions, will it not lead to potential security breaches ...
3
votes
2answers
2k views

Can't get Wireshark to run as user on CentOS

It's the first time I'm installing and configuring Wireshark in a rpm-based distro. In the past I've installed it properly on Ubuntu, Mint or Debian. Don't know why, but it seems I cannot run it as ...
3
votes
1answer
1k views

Running executables on an NTFS partition?

My system configuration is the following: UEFI computer Dual-boot with Windows 8 and Linux Mint 15 Olivia I would like to be able to run Linux executables that are stored on an NTFS partition ...
1
vote
1answer
2k views

How can I flash_erase mtd0?

I am trying to find a way to nandwrite my mtd0 partition which contains my u-boot environment. When I try to flash_eraseall /dev/mtd0 though I get: flash_eraseall: /dev/mtd0: Permission denied ...
3
votes
1answer
161 views

setgid binary doesn't have permission, mount's right, I'm missing something, but what, please?

I'm sorry, I know this has to be something simple but I've checked the manpages, the mount, the permissions ... (edit: combined history into one sequence as requested. Starting to seem a not-simple ...
3
votes
2answers
975 views

What is a regular file?

$ rm foobar rm: remove regular file `foobar'? What does it mean for a file to be "regular" and why does rm treat such a file as a special case?
1
vote
3answers
2k views

Setting default username and group for files in directory

Using this helpful post I am able to set a default group and file permissions in a folder. I'm having trouble setting a default owner (teamlead uid 1234). setfacl -d -m g::rwx /my/test/folder ...
3
votes
1answer
433 views

How are file permissions applied to newly created files?

I have a directory that has the following permissions set: drwxr-s---. user group folder On the desktop, I access this folder and right click to create a new file call foo.txt. Then using the ...
2
votes
1answer
282 views

Permission issues when doing system backup using rsync [duplicate]

I'm trying to backup my linux system (arch linux on a laptop) to a remote computer on the same network using ssh (or NFS). I use rsync extensively to backup my /home directory to the remote computer ...
0
votes
3answers
557 views

How to make accessible folder/file to other user

How is it possible to make a folder under $HOME accessible to other users? I thought that's the case why we have softlinks but apparently I am missing some bits here. Can someone please shed a light ...
1
vote
1answer
2k views

Linux Mint 15: How to change permission of /opt folder

I'm trying install Pycharm Community 3.0.1. I'm extremely new to Linux and don't really know how to install things without explicit instructions (which for more popular software has just been pasting ...
1
vote
2answers
7k views

How do I set permissions recursively on a dir (with ACL enabled)?

For example, I want to give my colleagues write access to certain directory. Let's assume that subdirectories in it had access rights 775, files 664, and also there were some executable files in the ...
0
votes
1answer
2k views

FTP error 553could not create file in RHEL

We need to transfer a file from local machine to remote machine. Remote machines settings is as below: [540607@hsldevoradb ~]$ su - Saphr002 Password: [Saphr002@hsldevoradb ~]$ pwd /odi/CSV/in ...
5
votes
1answer
79 views

Setting group permission on directory

I'm looking for the best way to give a group permission to view any files in /var/log, but only using cat or tail. My best guess right now is that I need to use ACL's: setfacl -mR default:g:group:4 ...
5
votes
4answers
496 views

Allowing rename but not moving to other directory

Users can upload/delete/rename files via vsftp server and everything works well except they can also move files across directories. Is it possible to allow renaming of files but disallow moving them ...
1
vote
1answer
92 views

What are the ramifications of recursively chown'ing the directories on an external drive that currently has 501:dialout or root:root permissions?

I have a Raspberry Pi that's running a Raspbmc distribution and I've noticed that a lot of the directories are either owned by the user 501 and the group dialout or both the user and group root. It's ...
4
votes
3answers
635 views

How to inspect group permissions of a file

I would like to inspect group permissions of a file from a bash script. Specifically, I need to check whether a file has the group writeable bit on. That's it. Simple as that. However: I also need ...
1
vote
3answers
60 views

How can I make a switch accessible via the internet, that allows users to turn on or off a python script?

I have a python script running on a home laptop that runs Ubuntu 13.10. I want to give 2 or 3 people the ability to start or kill that script, but no other privileges. I don't want to give them access ...
1
vote
2answers
5k views

Change Folder Permissons in Debian

I have some folders with account/user "OpenERP" and i created new folder (web_theme) under this directory . When i try to open/read this folder (web_theme) it throws "Do not have the Permissions" I ...
2
votes
0answers
139 views

New files getting wrong permissions from setacl

I'm trying to create a file from windows on a mapped samba share, but after creating the file, I'm unable to edit it. For some reason the mask is changing to rw- even though my default is set to rwx. ...
1
vote
2answers
558 views

Can any user account in Linux invoke command chmod?

Since permissions are sensitive, is it vital to be clear whether a specific user is or not allowed to run command chmod?
1
vote
1answer
249 views

EACCES that should not happen

I have a situation on a Linux machine that I can't really explain. Some background: We're running apache with a c/c++ module that forwards requests to our application. It does so by reading a .port ...
1
vote
1answer
413 views

Permissions don't restrict access to NFS mount

We've got a RHEL 5.9 server with NFS mounted directories from a central NAS. There we've got a directory owned by aird1(11055):app_dev(1101) user/group with rwxrwsr-x permissions (i.e. sgid to ...