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)

11
votes
2answers
7k views

Uppercase S in permissions of a folder

What does the letter S mean below? The file in question is a folder.                                     ...
3
votes
1answer
82 views

I am the only person with access to my machine. Any reasons to enable group/other permissions on files and directories?

I have noticed that some files in my home directory have read and write permissions for group and even other. If I am the only person who I want to give access to my machine, is there any reason to ...
3
votes
1answer
142 views

Give permission to view files

I am new with servers and I started learning about Cloud servers. My server has Debian. I installed apache, php, and vsftpd and I added users with adduser <user>. Then I gave permission: ln ...
24
votes
9answers
9k views

Why use `chmod 644` instead of `chmod u=rw,go=r,…`?

I've been working on *nix for a few years now, and one of the things I just can't get used to is octal permissions in code. Is there some other reason than line length to prefer chmod 644 ... over ...
2
votes
1answer
477 views

Specific command sequence with sudo and file permissions

I need to allow a certain user access to these commands: sudo sync echo 3 | sudo tee /proc/sys/vm/drop_caches (This particular developer is doing some DB performance testing and flushing the fs ...
5
votes
1answer
419 views

File permissions issue with webserver and ftp server

I have a question concerning permissions. I'm running lighttpd and a ftp server. I want to add a ftp user that is able to upload files to /var/www, which then are viewable in a browser. What is ...
5
votes
2answers
3k views

ISO file readonly?

I have an ISO file and I mount it under /mnt/isofile. Then I copied this file to another folder. But the contents are read-only and belonged to root. I tried to use chmod and chown. But it prompts ...
12
votes
6answers
17k views

Is there a way to stop having to write 'sudo' for every little thing in Linux?

I'm a newbie when it comes to Linux. I do most of my development in a Windows environment. That said, I'm going to be doing a fair amount of PHP work shortly, and I'm interested in learning RoR, so ...
4
votes
3answers
5k views

Automount external storage as user readable and writable in Debian XFCE?

I have Debian Wheezy installed with the latest XFCE desktop environment. In the XFCE settings, I specified that external media be automounted upon insertion. However, when I plug in my USB stick, it ...
3
votes
1answer
199 views

Restricting access to files on an external drive

I was wondering how to restrict access to a specific drive in Unix on the Mac. I was thinking to do this in Terminal where I create a file like this mkfile 6k secure_access. And where secure_access ...
1
vote
2answers
3k views

MySql: LOAD DATA INFILE

I am using MySQL v5.1 on Ubuntu machine. MySQL data directory is /var/lib/mysql/ I have a test.dat file located on /var/lib/mysql/tmp/test.dat I would like to load data from the test.dat file into ...
1
vote
2answers
2k views

Can't access Apache log folder

I want to see apache log file. This is what I tried: I granted most all permissions to apache2 folder. hieund@hieund:/var/log$ sudo chmod a+rw apache2/* But I can't cd to it. So I add my user to ...
7
votes
5answers
1k views

Can I prevent a file from being created?

We have a machine that runs VMware Server. It constantly creates a file called not_configured in /etc/vmware/, which somehow makes our virtual machines not able to be started. I wondered if there was ...
4
votes
2answers
9k views

ttyUSB0 permission changes after restart

I'm trying to install a device. I plug in the device which creates a ttyUSB0 file. When I open it in the program I need it for, it says the permission is denied. I type in terminal sudo chmod 666 ...
3
votes
5answers
2k views

Configure permissions

I'm sharing a git repository with a friend over SSH. He pushes from and pulls to his git repository using my machine's SSH server, where the shared git repository is. Problem is that when he pushes a ...
2
votes
1answer
938 views

New files and folders created, automatically inherit same permissions as parent folder

Does it exist? I create a folder with, let's say, all permissions set, and some services (i.e. Apache web server) create subfolders and put files there (uploaded media files from website users). Such ...
3
votes
2answers
942 views

A question about permissions of hierarchical directories

I have some directories, with following permissions: drwxr-xr-x 18 user1 root 4096 Oct 27 11:25 /home/test1/test2 drwxr-xr-x 24 user1 root 4096 Oct 21 08:38 /home/test1 drwxr-xr-x 492 root root 12288 ...
0
votes
2answers
1k views

Revoke directory access for a particular user in Solaris

I have a need to allow directory access to a particular user on my file system. I want this user to be unable to access any other directory in my file system (initially anyway. It may need access to ...
22
votes
1answer
22k views

How can I start the python SimpleHTTPServer on port 80?

I am using this command on Ubuntu but it is starting on port 8080 and I don't have another server running so I'd like it to start on port 80. I saw ways that you could set up a bash script to do ...
1
vote
4answers
901 views

chmod - change permissions on a file

I have a Python virtualenv, and the Python executable is located in the /bin directory. In this virtualenv I'll have to execute some unsafe code, that can damage my system. I tried to chmod a-r on the ...
2
votes
2answers
4k views

Why do I immediately get a “Permission Denied” error on login, even with root?

I have a weird problem on my notebook. When I want to login to the system (for example on tty1), immediately after I put in my username I get a Permission Denied error, even with root! I booted a ...
0
votes
1answer
998 views

Unable to login to linux machine

I can't login to my linux machine. It's giving me the following error: /usr/libexec/gconf-sanity-check-2 exited with status 256 I removed all the files in the /tmp directory after this issue ...
3
votes
3answers
330 views

Setting execution right to whole directory - is it good or bad idea?

I have a zip file containing lot of files and directories for a certain application which should be running on Linux. Some files needs to be set as executable, but the zip file format afaik does not ...
1
vote
1answer
261 views

How to search folder with only x set (execution) permission

I have read that if folder has only x set permission to execute it actually means that you are permitted to search this directory. So how to search it?
5
votes
5answers
259 views

Is there a way to see the permissions of all the intermediate directories of a path..?

I have a file path.. Is there any single command to see the file/directory permissions of all the intermediate directories in the path..?
5
votes
2answers
4k views

Permanently changing the ownership (or group) of LVM volume

How can I permanently change the ownership (or at least the group) of a LVM volume? I figured that I have to use udev, but I don't know how the rule should look like? Let's say I want to change the ...
3
votes
1answer
1k views

“Permission denied” when starting binary despite “rwx” priviledge

I am trying to run the statistics software Stata 11 on Ubuntu 11.10. as a regular user and I get the following error message: bash: xstata: Permission denied The user priviledges seem ok to me as a ...
2
votes
2answers
4k views

How do I change permissions on a directory without losing setgid?

When I change permissions for other or user on a setgid directory, the directory loses its setgid. How do I make the change without loosing it? sudo is not an option. Is it possible? Here is some ...
1
vote
4answers
1k views

Call 'ps' as a normal user in Linux

A brief introduction to my question: the command ps will print the information of system processes. But when I login as root and change the permission x of ps chmod -x /bin/ps chmod u+x /bin/ps ls ...
1
vote
1answer
692 views

Permissions for making some some (but not all) files visible directly under a directory

On wikipedia I read the following: The read permission, which grants the ability to read a file. When set for a directory, this permission grants the ability to read the names of files in the ...
2
votes
1answer
10k views

Changing user and group ID system wide (including file system attributes)?

(this question possibly related to Linux: simulating/masking user ownership upon mount of 'external' partitions? - Stack Overflow) I typically use Ubuntu (currently 11.04) as my desktop OS; let's say ...
0
votes
2answers
98 views

How to write in directory out of home?

I have my Apache server running in the /srv/http/ directory. I changed the group of it to httpadmin and then added my user to that group. Then, I changed the permissions of that directory to ...
3
votes
1answer
713 views

Copy just permissions and ownership from one tar file to another

I have two tar files which are basically backups of my /data folder on android. The problem is the permissions and ownership of the files inside latest back-up is messed up. However the permissions in ...
2
votes
1answer
4k views

Changing my default primary GID for every login session

I read the following about newgrp: The newgrp command is used to change the current group ID during a login session. This made me think, how can I change my default's primary group ...
1
vote
1answer
584 views

Sticky bit vs setgid for facilitating shared write access

Say two people with different primary unix GIDs share and need to frequently edit the same file. The users are not members of each others' primary unix GIDs, but they are both members of a common ...
6
votes
4answers
2k views

mount ramfs as user

My fstab entry: none /home/jreinhart/ramdisk ramfs defaults,user 0 0 The directory before mounting: drwxrwxr-x 2 jreinhart jreinhart 4096 Oct 17 11:31 ramdisk The directory after ...
5
votes
1answer
835 views

Can't get directory listing of folder I have permissions to

I was having some permission problems and used the following command on directory Media: chmod -R ugo+r Media It didn't help so then I did: chmod -R 775 Media Now I get this error when I try to ...
5
votes
3answers
4k views

Write access without read access

Is it possible for a user to have a write access to a file and not be able to read it? How is it possible? I tried the following commands: debianbox@debian:~/posix/io$ touch filetest ...
7
votes
1answer
7k views

what is 'nogroup' group's purpose

When I list al groups I see one called 'nogroup'. What is this for? Is it supposed to be least privileged one or something? I'm using ubuntu 11.04.
3
votes
2answers
1k views

Why can't I change permission on a symlink on Mac?

Simple question and there is perhaps a simple answer. I have several directories in my home folder that I would like to make available as a directory on my webserver. So, what I did was to create a ...
1
vote
1answer
706 views

What are appropriate execution permissions for ~/bin?

I am putting some scripts in ~/bin and am wondering what appropriate file permissions are. To extend my question somewhat, what permissions make sense for */bin folders all over my system, and why?
6
votes
1answer
2k views

Find a user's writable files and directories

How can I determine all files and folders that given user can write to? The user is nobody. Some script in bash or python, perhaps? I'm using Ubuntu 11.04
2
votes
2answers
734 views

su user fails with “grep: /var/cpanel/users/user: Permission denied”

I just did something pretty simple. Given a user user, I modified his user id, primary group's id, and added him to a new group in order to make my server use the same uid and gid as another server ...
2
votes
1answer
125 views

Permission Advice for Webserver

The Linux box I'm managing is used mainly as a web server. The owner of a site wants to give a new user access to the site so that they can do some work on it. I've created the user account (vinod) ...
2
votes
2answers
817 views

Mount permissions always blocked

How do I authorise my non-root user to manually mount/unmount ALL media on my desktop. I always get denied permission. Media refers to all mountable USB devices and other partitions on my HDD as ...
0
votes
4answers
11k views

permission error with php/nginx and not using www-data

-edit- whats even more curious is if i chmod 777 /var/run/php-fastcgi/php-fastcgi.socket this works... if its not www-data, php-www (nor root) then what user is trying to access the socket :| -edit2- ...
1
vote
1answer
354 views

Sharing files with NFS and Unix Permissions

I'm kind of new to using NFS in the context of Linux permissions, so I'm a little lost on how I can make this work. Here's my setup: alpha writes files as root to the mounted NFS share. beta ...
2
votes
2answers
1k views

A command to check file access permission for another user

I need to know how to check the effective file access permissions for a given user, but it takes long to do this manually starting from / up to the target file or directory, checking group, ...etc.
2
votes
1answer
462 views

Problem when installing “ia32-libs”

I'm using x64 Ubuntu. A few months ago I accidentally messed up the groups/owners of all files on /, but managed to fix it using a VirtualBox install of Ubuntu. Now I'm running into a problem that I ...
0
votes
2answers
163 views

+x permission for files in directory

I'm an Ubuntu user and I'd like to change default permissions for downloaded files. Currentely all downloaded files are automatically saved with "-rw-r--r--" permissions (umask 0022). I'd like to add ...