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)

4
votes
2answers
1k views

Mate desktop breaks with no panels and tens of caja windows on user switching?

I'm using Sabayon GNU/Linux with Mate-Desktop. I have my computer set up for multiple users so my girlfriend and the kids can use it too. ~ $ uname -a Linux 3.9.0-sabayon #1 SMP Thu Jun 27 07:53:45 ...
1
vote
2answers
194 views

MacOsx - Shell - list all .php files and their octal permissions, inside a specifc folder

is it possible to list all the ".php" files located into a direcotry and their octal permissions? I would like to list them like this: 775 /folder/file.php 644 /folder/asd/file2.php etc...
2
votes
0answers
1k views

Permission denied when Ubuntu is attempting to mount to a remote Windows share folder

Fellow guys, I encountered the error when I's mounting my Ubuntu server to a remote Windows share folder, the following is the error on terminal after I typed command line 'mount -a': mount ...
3
votes
4answers
108 views

Why is that when I download a binary from the web it doesn't have executable permissions set, but when I use gcc to build a binary it does?

For example, if I have the file hello.c which just contains: int main() { printf("Hello world"); return 0; } and I built it in gcc with gcc hello.c -o hello I can then run ./hello and it ...
2
votes
3answers
135 views

Safer way for granting permissions for self user?

I know sometimes we can do chmod 777 so we have a directory at our complete reach for accessing, reading and writing. But usually I prefer to do a sudo chown {myusername} {directory}. Obviously, the ...
10
votes
3answers
2k views

How to check if a user can access a given file?

*nix user permissions are really simple, but things can get messy when you have to take in account all the parent directory access before reaching a given file. How can I check if the user has enough ...
2
votes
1answer
890 views

How does umask affect ACLs?

Can someone explain to me how umask affects the default mask of newly created files if ACLs are activated? Is there some documentation about this? Example: $ mkdir test_dir && cd test_dir $ ...
2
votes
2answers
2k 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, ...
2
votes
2answers
320 views

How to password-protect a script on Linux?

How do you set a password to execute a command or script in Linux? I need to avoid a script (in which user and password details are included) from being used/executed from unauthorized users. So is ...
0
votes
1answer
411 views

Security - Giving Apache write access to /var/www/html

I am running Worpdress on an CentOS Webserver. Now, to enable wordpress to be able to upload/write files to the default webserver directory /var/www/html I had to do the following change on the ...
1
vote
2answers
399 views

Directory “not found” on HP-UX for NFS mount point

On an HP-UX B.11.31 that mount via NFS a remote disk using mount point /BK_RESTORE, I would like to access a sub directory with oracle user, but I cannot even if permissions are correct. Using a ...
1
vote
0answers
189 views

vsftpd - ftp user cannot create folders

CentOS - I have created an ftp user that can log in remotely over the internet to the vsftpd server. Now I can log in via ftp, see all the directory listings (not limited/jailed) to any directory, ...
0
votes
0answers
68 views

LXC: running Virualbox within a container

I've installed virtualbox inside an lxc container. However when I try to start a VM I get the error message: kernel driver not accessible (rc=1909) ....permission problem with /dev/vboxdrv. This ...
1
vote
2answers
141 views

lxc: running virtualbox inside a container

I've install virtualbox inside an lxc container. However when I try to start a VM I get the message: kernel driver not accessible (rc=1909) ....permission problem with /dev/vboxdrv. This obviously ...
1
vote
1answer
41 views

Lightweight userspace sandboxing of filesystem

I would like to trick a non-malicious process to think that it is writing to directory $HOME/abc/def/ while it writes in fact to $HOME/xyz/def (the former path is hardcoded and it does not work for my ...
2
votes
2answers
1k views

What are the 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?
3
votes
1answer
71 views

How can I change the error messages for 'touch'?

Lets just have some typical usage of touch as expected: $ touch this $ sudo chown root this $ touch this touch: this: Permission denied Now what I want to do is change touch: this: Permission ...
0
votes
1answer
96 views

Amazon EC2: Giving Permanent Permission To A Sepecific Directory In Amazon Linux AMI

I have a Symfony2 project that needs full read write permissions to three directories: app/cache, app/logs, and few other directories which are used for uploading. The problem is everytime I push an ...
0
votes
2answers
342 views

Ubuntu : unable to copy file to dir created under same credentials

I am Windows 7 remoting to Ubuntu 12.04.2 LTS I am new to Ubuntu ( and *nix in general ) and need to understand how permissions are assigned to newly created dirs. Via Putty ssh session : $bash ...
0
votes
1answer
44 views

How do I set up proper ownership of these files?

I need the directory /var/www/ (and everything inside it) to be modifiable by only authorized users. The way I tried to do this was: sudo groupadd webmasters sudo usermod -G webmasters pi # My user ...
0
votes
2answers
59 views

Have rights during shell but not in a script (unless I sudo it)

I have a really basic confusion. How does sudo work? I noticed that when I ran a script it failed, since it tried to write a file in a directory that the following permissions: $ ls -l thedir ...
0
votes
1answer
37 views

Not able to copy original top command executable over a malicious one

Somebody hacked my system and replaced some of the system commands like top, ps, find etc with malicious ones. Now, I am trying to copy the original ones, but the copy or move commands fail, even ...
1
vote
1answer
45 views

Permissions on `/`

What should the permissions be for /? I ask because I completely removed all files from my drive and reinstalled the OS, but I still get "permission denied" errors for /bin/zsh when I try to log in as ...
0
votes
1answer
45 views

Doesn't umask apply to files?

I have set the umask to 0. So: $umask 0000 I do echo 'test' > test.txt And test.txt is created. If I do: ls -l test.txt I see: $ls -l test.txt -rw-rw-rw- 1 jim None 5 Jun 30 22:50 ...
3
votes
3answers
149 views

Launch a process with limited permissions

I'd like to be able to launch processes with very limited permissions from the command line, basically so that I can run a process that I don't understand without it having access to things in my user ...
-2
votes
1answer
113 views

Break write permission for non root user?

Can non root user edit files he/she doesn't have access to or create new a file in a directory he/she doesn't own? Is there a way to do that? P.S : I know if root user or file owner gives him write ...
5
votes
2answers
364 views

How can I ensure only the root user have the right to halt/reboot the system?

CentOS Linux by default allows all users to have permission to "halt" & "reboot" the system by using the commands halt and reboot. How can I configure my system so that only the root user has the ...
2
votes
3answers
248 views

'setfacl' permissions don't apply to directories created by git clone?

Here's how I am setting permissions for my website's root directory i.e. ~/public_html, where the files that my website serves are placed: sudo chgrp -R www-data ~/public_html chmod g+s ~/public_html ...
1
vote
2answers
595 views

postgresql service start issues

I'm attempting to build a box via Fabric on Openstack. Part of the install involves installing and running PostgreSQL. This command works fine: $ sudo service postgresql initdb This command ...
1
vote
2answers
181 views

Permissions on an ext4 filesystem on a removable drive used in different machines

I have a USB flash drive with ext4 file system and its files are owned by my user on my local machine, for example by myuser@myhost with 700 permissions. If I unplug my flash drive and plug it in ...
2
votes
2answers
372 views

scp to /home changes permissions?

This would be illustrated very nicely with an scheme. When I write "Test: OK" or "Test: FAIL" I am restarting apache server (httpd service). Basically, performing everything as root in the ...
2
votes
4answers
325 views

How do file permissions/attributes work? Kernel-level, FS-level or both?

A question that occurred to me earlier: are file permissions/attributes OS- (and therefore kernel-) dependent or are they filesystem-dependent? It seems to me that the second alternative is the more ...
1
vote
1answer
232 views

Base permissions on a fat32 usb drive

On linux, the base permissions for directories is 777 and for files, it is 666. Thus, with umask=022, new files are 644 and new directories are 755. But when I mount a usb drive with fat32 ...
5
votes
4answers
456 views

chmod recursive permission on thousands of files

This is a more general question about 'chmoding' recursively. I have this script which at some point needs to change the permissions recursively in a folder which has a few hundred thousand files. ...
1
vote
2answers
4k views

What are the settings to correct vsftpd “500 OOPS: cannot change directory” error?

My question is what settings do I need to change and/or commands to run to allow me to log into my vsftpd system? I am getting this error, when I login using ftp instead of sftp: Name ...
1
vote
3answers
103 views

Make web project writable by apache and other user

I am running ubuntu 12.04 LTS . To be able to view my web project in the browser I did the following: chown -R www-data:www-data /var/www/project Now I wanted to open the project in netbeans but it ...
3
votes
1answer
389 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 ...
11
votes
3answers
1k views

How does the sticky bit work?

SUID The sticky bit applied to executable programs flagging the system to keep an image of the program in memory after the program finished running. But I don't know that what it's stored in ...
1
vote
1answer
529 views

Filesystem suddenly read-only?

I've been storing some files on a MicroSD formatted to ext4 that I connect via USB. I tried to move a directory in it to an external hard drive, and I got mv: error reading ...
3
votes
5answers
349 views

Protect folder from sudoers

Is there an ability to not allow sudoers view your folder (only you and root can access folder)?
2
votes
2answers
124 views

Having Virtualbox disk images on /opt

Background After a recent HDD crash I did a clean install of Linux Mint 15 on a new disk. Seeing the potential problems with having backups of my documents and eclipse workspace, I realized that a ...
3
votes
2answers
176 views

How Do I Block Read Access to a Symbolic Link?

I have this file structure: > APPLICATION 1 >> CONTROLLER (@JuniorProgrammers) >> MODELS (symlink to SHARED/MODELS) >> VIEWS (@Designers) > APPLICATION 2 >> CONTROLLER ...
1
vote
1answer
239 views

Can't edit /proc/sys/net/core/wmem_max [duplicate]

Recently my wireless network has being stopping to transfer data from some irregular time intervals that vary from 30 seconds to 20 minutes, and every time I need to plug off and then on the wireless ...
3
votes
1answer
82 views

Richacl invalid argument when trying to set atributes

I've compiled a kernel to use richacls, and compiled the richacl's utility, (but not the e2fsprogs). I've mounted a loop file with richacl flags /root/fs_prueba_10mb on /media/ext4_con_richacl type ...
3
votes
2answers
142 views

Permissions by path instead of file mode bits

I often find that the unix way of handling file permissions is powerful, particularly when combined with ACLs, but rather difficult to handle. Setting file modes, group ownership and extended ...
2
votes
1answer
115 views

umask base permissions on usb drive [duplicate]

On linux, the base permission for a file is 666 and for directories, it is 777. With a umask=022, new files and directories have permissions 644 and 755 respectively. When I mount a usb drive with ...
1
vote
1answer
358 views

I can't seem to remove a file even after changing ownership and permissions [duplicate]

Haven't been here much. Mostly Stackoverflow. Anyway, I have a file that I can't remove. I tried sudo rm files.db and got Operation not permitted Did sudo chown me: files.db Then sudo chmod 777 ...
1
vote
1answer
117 views

Changed file access to read only but I can still write to the file. Why?

I am running a small embedded system built using buildroot. I have come across this strange behaviour when trying to set up my file permissions on the target device. To illustrate what confuses me I ...
0
votes
1answer
141 views

Give a Root owned folder web read and write access

I have an Ubuntu server for a client I am working on, doing development work. I have root access and they created a new vhost blog.domain.com so when I log into it with WinSCP it list the files and ...
3
votes
2answers
1k views

Allow a specific user or group root access without password to /bin/date

As the title would suggest, I'd like to give a user or group full root access to the /bin/date command, including any manner of arguments as defined in the man pages. I understand /etc/sudoers ...