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
vote
2answers
44 views

why suid bit is unset after file modification

I have an (s|g)uid file world-writable: ls -lh suid_bin.sh -rwsr-srwx 1 root root 168 mai 23 16:46 suid_bin.sh logged with a non-root user account. I use vi (or another editor) to modify ...
7
votes
5answers
291 views

Changing Unix group for files

I have a file that a colleague and I are editing together, on a Unix system. We are using Unix group permissions to edit it. We have one Unix group that we are both members of. Whenever I save the ...
0
votes
1answer
860 views

Samba share open for all to all

thanks for viewing at this question. I have a CentOS 6.5 server with a share that is and should be accessable for and from everyone. All content placed on that share should be accessable by everyone. ...
2
votes
1answer
180 views

files saves to ntfs drive adhere to umask, ext4 does not

I have 2 storage drives, 1 is NTFS and the other is ext4. Both mounted in /media as Storage_1 and Storage_2 I've run chmod -R *user*:*user* /media/Storage_* I've tried putting umask=022 in ...
11
votes
4answers
10k views

What are the world writable directories by default?

In a standard Linux filesystem, which of these common directories are world-writable by default? /tmp /etc /var /proc /bin /boot /.... .... Why are they world-writable? Does that pose ...
0
votes
1answer
36 views

Why can't i delete file when i have the file's ownership? [duplicate]

As a root user, I created a file in / directory. I can only read this file when logged in as normal user (say A) as expected.I changed the ownership to A.Now A can read as well as write.But when I try ...
1
vote
1answer
24 views

umask not working as expected in other than home directory

I try to set up a deployer user for CI with Teamcity. I followed the instructions from this question on ServerFault: What's the best way of handling permissions for apache2's user www-data in ...
0
votes
2answers
1k views

Can't write via FTP despite apparently correct permissions

I have the same problem no matter if I'm using pure-ftpd or vsftpd. In Debian Wheezy. The user can browse the directories in /var/www/foo, but when the file transfer is uploading I get '550 cannot ...
1
vote
1answer
36 views

Where does Linux track who is a group admin through the gpasswd command?

If I modify group membership and admins using the gpasswd command and add a user as a group admin Linux will allow that user to perform tasks otherwise reserved by root. Ex. [test1@centos ~]$ ...
1
vote
1answer
25 views

User Permissions problem in CentOS 7: “Permission denied”

I thought that I knew how to set up permissions in Linux. I apparently don't. I have a user called "web3". This user was automatically created by ISPConfig (A server management application like ...
1
vote
0answers
14 views

Making CMake apply -DCMAKE_INSTALL_PREFIX to everything

I'm trying to build this app with CMake, as a non-root user. I've run: cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/opt but during make install, I get -- Installing: /usr/local/share/myapp/data CMake ...
-2
votes
1answer
27 views

How to view an specified user's pemissions in linux? [on hold]

can anyone please suggest me how to find out the permissions of a specified user in linux? I'm getting the information regarding the files/groups etc. But I need specific users permissions ...
4
votes
4answers
2k views

Is it safe to chown on /usr/lib?

Can I do this? sudo chown -R myUsernName /usr/lib I mean can I do this without worrying that my OS will be broken? Or permissions will be screwed up? Here is the reason why I would like to do it ...
2
votes
2answers
7k 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 ...
2
votes
1answer
2k views

How can ubuntu/truecrypt be configured so users can mount volumes if-and-only-if they have proper permissions on the mount-point?

If I add the line: ALL= /usr/bin/truecrypt to the sudoers file this lets all users mount volumes at arbitrary mount-points. The problem is a user could create a truecrypt volume and then mount it at ...
1
vote
0answers
35 views

Locked myself out of Amazon EC2 [duplicate]

I'm working with an Amazon EC2 instance and at some point, I wanted to chown a directory recursively, and it looks like I applied the command to the whole file system. As a result, it is possible that ...
1
vote
2answers
42 views

VERR_ACCESS_DENIED when trying to add a raw disk to virtual box

I created a virtualbox raw disk pointing to a functioning, booting USB drive with a small linux distro on it. sudo ./VBoxManage internalcommands createrawvmdk -filename ~/VirtualBox\ ...
1
vote
3answers
1k views

Linux Permissions vsftpd

I have mybb installed and running in /var/www/forums. I have two users part of the www group, logan and www-data. I have the recursive permissions of forums directory set to: chmod -R 755 forums ...
1
vote
1answer
932 views

“You do not have the permissions necessary to view the contents of “Share on name.domain.com”.”

I am having some issues with Samba on my Fedora file share server. I've logged into as the vncuser below on the server itself and I can access the directory, however I get permission denied errors ...
1
vote
0answers
47 views

apparmor - cannot load library

I'm trying to get apparmor set up on my system and am having troubles getting past the permission denied error: ping: error while loading shared libraries: libcap.so.2: cannot stat shared object: ...
1
vote
0answers
21 views

American Fuzzy Lop run test program as unprivileged user or in chroot

I'm attempting to test tcsh on OS X with American Fuzzy Lop as an exercise, but don't want to accidentally clobber any useful files on my system. Knowing essentially nothing about fuzz testing, I did ...
-1
votes
1answer
27 views

Extended permissions - after set acl, group cannot write [closed]

I want to use setfacl to set permissions to dir for the users group. I do something like this: mkdir /Employee chgrp employeers /Employee setfacl -m d:g::rwx /Employee And now, when I try to create ...
0
votes
0answers
20 views

Can't make SUID work [duplicate]

I have 2 users: root and usr345 in the system. SUID bit allows the users to execute a program with permissions of it's owner. I created a file: # touch /home/usr345/update-iptables.sh Contents: ...
2
votes
1answer
29 views

Find differences of ownerships between two home folders?

I have two home folders: /home/masi and /home/masi_backup and I would like to find the differences between files of the two directories. Pseudocode vimdiff <`ls -la /home/masi` <`ls -la ...
13
votes
6answers
81k views

VSFTPD, 553 Could not create file. - permissions?

I've set up VSFTPD on Amazon EC2, with the Amazon Linux AMI. I created a user and can now succesfully connect via ftp. However, if I try to upload something I get the error message "553 Could not ...
5
votes
2answers
22k views

What are the runtime permissions of a cron job?

When a cron job runs with what privilege does it execute? I'm not sure about that. Is it with the same privileges of the user that added it via crontab -e?
2
votes
1answer
939 views

How can I get write access to my usb drives?

I have trouble writing to external drives. They are monuted automatically in Nautilus, but I can not copy anything there ('Paste' and 'create Folder' are just greyed out). Does Anyone have ideas what ...
4
votes
1answer
963 views

Procmail: Denying special privileges for “/etc/procmailrcs/default.rc”

I'm trying to setup postfix, dovecot and procmail to work together with virtual users. In the end I want to have virtual users and the possibility to add rules to sort incoming rules. For the last ...
0
votes
0answers
16 views

Lock icon on folders and chmod not working

In my pen drive all folders and files have lock icon on them. But when I tried to change the permission by sudo chmod 777 -R /media/backbox/BB65-5FC4 the permissions didn't change. Instead I got ...
0
votes
0answers
10 views

Understanding owner groups of a folder

I am having some problems understanding how users and groups permissions work in Linux. The command I am trying to launch is the following: ln -nfs /home/mmarteau/wfor.it/releases/release_folder ...
1
vote
2answers
2k views

What is the cause of this error: Error: EACCES, permission denied

I have two three users: db, nr, ba All three are members of the group dbp Node.js is installed in /usr/bin If I run the command : /usr/bin/node /home/db/dbb/m/i.js Then it works fine when I run ...
3
votes
0answers
48 views

Linux: Changing Permissions – No space left on device

I have an external drive. When I just plug the drive into the PC, with a default /etc/fstab file, the OS just detects it and it's there in the Dolphin browser. I can select it, I can navigate to it on ...
1
vote
0answers
12 views

Centos 6 FTP problem

I have a VPS running CentOS 6. I've tried multiple FTP servers but the following problem keeps me stuck. I want all users to have FTP access to their own folder in /home, so I configured Pure-FTPd to ...
0
votes
1answer
48 views

Clarification: permission and owernship by the apache process of web root

I've read through a lot of articles about correct/secure (1) ownership and (2) access permissions for directories and files in a web accessible directory served by apache (e.g. /var/www/). Either I'm ...
4
votes
1answer
1k views

suexec with chrooted environment

I'm trying to get a chrooted Apache environment working running mod_fcgid with suexec. Looking at suexec log inside jail, the wrapper scripts are being executed with no problems, however, when I look ...
4
votes
2answers
9k views

CentOS - Issue with write permissions

I am running CentOS 6.4 and I have installed Wordpress on it. (along with LAMP) Now the problem is, that I cannot make any write changes to any files in the wordpress editor: eg. header.php, ...
1
vote
1answer
38 views

Apache does not have the permission to copy files from a mounted directory

My application on the server wants to copy a file from a remote directory mounted by sshfs to a local directory. The application code: ...
1
vote
1answer
27 views

change home folder permissions on exit/disconnect

I have a use case where my folder on the linux server needs to have its permissions opened up so I can use a sudo account to move files from my folder to shared folders. What then happens is often ...
6
votes
4answers
22k views

'chmod g+s' command

Hello I want to understand the role of the chmod g+s command in Unix. I also would like to know what it does in this particular context: cd /home/canard; touch un; chgrp canard .; chmod g+s .; touch ...
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
282 views

403 Forbidden on Sub-Folders

I am a Linux newbie and decided to do a LAMP install to start getting more familiar with it (as our company is moving more towards nix these days). Everything went great and PHPMyAdmin, MySQL, ...
2
votes
1answer
12k views

Apache throws 403 Forbidden after moving DocumentRoot (CentOS 6.4)

I installed Apache via yum on CentOS 6.4. I changed the DocumentRoot in /etc/httpd/conf/httpd.conf to point to /home/djc/www: DocumentRoot "/home/djc/www" <Directory "/home/djc/www"> ...
1
vote
2answers
32 views

Apache - 403 Forbidden

I know this question has been asked a lot of times but I'm completely stucked. My /var/www/html folder contains: mbfr/ |-- index.html | school/ |-- index.html I want to exemple.com serves the mbfr ...
0
votes
0answers
96 views

security2_module module for apache is causing the “Forbidden You don't have permission to access / on this server” message

I installed the security2 module to my apache server by adding these following lines to my httpd.conf: <IfModule security2_module> Include ...
1
vote
1answer
75 views

Apache Tomcat and Httpd - Sharing common web publication folder - CentOS

Suppose: The Httpd's Web publication folder is assigned according: Edit /usr/local/httpd/conf/httpd.conf file: DocumentRoot "/usr/local/WebFiles/Html" <Directory ...
0
votes
2answers
46 views

Apache and symbolic link in /var/www/html

I'm trying to create a symbolic link to /home/user/www from /var/www/html so I can access the directory in my home folder from the URL: http://localhost/www/ I did: ln -s /home/user/www /var/www/html ...
4
votes
1answer
269 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
1answer
159 views

One of my pdf files in my apache server can be accessed the other can't, with the same permissions and same directory

I have two pdf files in my server: -rwxr-xr-x. 1 apache apache 1422861 Sep 11 2014 file1.pdf -rwxr-xr-x. 1 apache apache 340815 Aug 27 13:06 file2.pdf I can access the first one by going to ...
4
votes
3answers
11k views

Apache2 userdir enabled, but still have no access

I am trying to set up an apache server on my Kubuntu 13.04 laptop. I have installed the apache2 package and sudo a2enmod userdir; sudo service apache2 restart, but still when I visit ...
4
votes
2answers
4k views

Apache ownership and permissions for wordpress

I'm new to running a VPS, but I managed to get the whole system setup and secured without any issues :) My question concerns Apache and the different ways it can operate. For this particular machine ...