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
2answers
979 views

List all chflags file flags?

Is there a way to see a file's flags, such as hidden, schg, etc? I've got an rwxrwxrwx file that I can't edit, and I think a flag might be responsible.
4
votes
1answer
1k views

How to configure permissions to allow apache to securely have access to a file in a shared environment?

This is a follow up question from my previous, but I felt it might be more Linux based. http://serverfault.com/questions/414207/how-to-set-linux-permissions-to-allow-apache-to-have-access-to-a-file ...
4
votes
1answer
2k views

GNU Screen does not work when su'ing from root to a normal user

Is it normal, that when I am logged in as root, and the used su user, I can't access that users screen sessions? In this case, screen complains about it not having permissions on /dev/pts/x. I ...
4
votes
1answer
592 views

Change view in emacs dired mode

What options are there to change the view of a directory in emacs dired mode? How to apply it? How can I change it on the fly? In particular I want to know: How to make it show the file sizes in ...
2
votes
3answers
1k views

Limited SSH user on Ubuntu 12

I'm running Minecraft on a server. How can I give my friend SSH access just to the minecraft folder (a root folder), the screen command, and some ports?
10
votes
2answers
820 views

Deny flash plugin access to (a particular) webcam

I recently bought an external webcam to play around with OpenCV. It works great out of the box in Debian, but I realized that when I browse any site that contain flash content (youtube, soundcloud), ...
2
votes
1answer
809 views

Mounting a Windows partition without giving execute permission

How can I mount a Windows partition so that the files within it don't have execution permission? I mount a Windows partition using: sudo mount /dev/sda3 win win is a folder in my home dir. This of ...
2
votes
1answer
3k views

Understanding udev rules and permissions in libusb

I had a problem with my scanner. Xsane worked only as root. Using it as normal user it didn't find any devices. Adding the user to the groups saned or scanner didn't help. Finally I solved the ...
2
votes
2answers
1k views

How can I allow a different user to connect to my session using X11vnc?

I'm trying to use x11vnc to allow users to remote control certain computers. This works fine in general, but there is one aspect I have trouble implementing. I want to restrict access to a specific ...
1
vote
1answer
134 views

How do I keep KDE from asking new users for a password when I use /etc/skel to set up their enviroment?

I made this nice custom KDE setup on Arch Linux with customised settings like desktop background, panel settings, kwin settings, etc. I heard that if you copy all the hidden files from your ...
5
votes
3answers
619 views

chown not permitted, but I have write access. How can I take recursive ownership?

Consider the following scenario: I have rwx access to a directory as a member of the group id of the directory. The system admin does not let users run chown (see this thread for details) How can ...
2
votes
1answer
519 views

Permissions corrupted?

A few weeks ago, I installed Linux Mint on a USB flash drive. I used it to copy the contents of my HFS+ external hard drive to my Windows drive on my desktop. Then, I formatted the external drive to ...
0
votes
1answer
310 views

Giving input to background processes

Is there any way to give input to background processes or which run as daemon processes? I was coding some Puppet configuration files and I had to push them to some remote machine. For that purpose I ...
2
votes
4answers
378 views

Strange file ownership with Ubuntu

Normally we know when we create one file in Linux, the file's owner and group will set with the creator. For example, I have one user, usera, after I execute usera@srv1:$touch 1.txt I will find the ...
4
votes
2answers
340 views

Password protecting a system file? (e.g. /etc/resolv.conf)

I am trying to parental control myself by restricting web access via OpenDNS. The OpenDNS account password will be handed to someone trustworthy. Now, I want to put some restriction on the ...
1
vote
1answer
626 views

Permisions overwritten when files are transfered via FTP. What to do?

Got my web server up and running using apache2 with the ability to ftp to /var/www folder. However, if I make an update to .html and copied over the file via ftp, the file's permisions become more ...
1
vote
1answer
2k views

No permission on external drive [duplicate]

Possible Duplicate: can't change file permission On my hard drive everything is fine, but when I go onto my external drive I can't chmod. I get no error message but the changing simply ...
3
votes
3answers
7k views

What does GID mean?

What does GID actually mean? I have Googled it and this is what linux.about.com said: Group identification number for the process. Valid group numbers are given in /etc/group, and in the ...
1
vote
2answers
273 views

How to maintain file ownership when running 'yum update'

I'm running CentOS 6.2 and installed nginx as root. After the install I changed the owner and group of the install to it's own user and group to keep thing a bit more secure. I logged in as root and ...
50
votes
6answers
91k views

How do I copy a folder keeping owners and permissions intact?

So I was going to back up my home folder by copying it to an external drive as follows: sudo cp -r /home/my_home /media/backup/my_home With the result that all folders on the external drives are ...
23
votes
1answer
2k views

Why can't root execute when executable bits are not set?

root user can write to a file even if its write permissions are not set. root user can read a file even if its read permissions are not set. root user can cd into a directory even if its execute ...
2
votes
1answer
2k views

How do I set permissions for a directory so that files and directories created under it maintain group write permissions? [duplicate]

Possible Duplicate: Make all new files in a directory accessible to a group I have a directory in which collaborative files / directories are stored. Say directory abc is owned by root and ...
2
votes
2answers
505 views

Gaining root privileges in SCO

I am learning Linux for work, so am still a bit rusty on the edges. I need to change the folder permission of the directory /opt, and I know in Linux, you do the following: chmod 775 /opt I get a ...
16
votes
1answer
15k views

How to skip “permission denied” errors when running find in Linux? [duplicate]

Possible Duplicate: How do I remove “permission denied” printout statements from the find program? When I run this command in Linux (SuSE): find / -name ant I get many error ...
2
votes
3answers
2k views

Change Folder Permissions

I started off with changing to the folder I want to change permissions for, and that is the opt folder. $ cd /opt/ test@testVM:/opt$ So I tried changing the permissions for this folder now using: ...
12
votes
1answer
710 views

Can I restrict a user to use special programs?

Is it possible to add a user and restrict him to run special programs? For example after this user logs in, he can only open Firefox to use Internet and no other programs can be run by this user. For ...
4
votes
4answers
5k views

What is the default permission of folder /var?

I am a complete beginner in Linux. I just installed Ubuntu 12.04 in a pendrive, then installed MySQL and Apache PHP and then I tried to install Moodle (a distance learning platform I use at work). The ...
4
votes
1answer
1k views

How do permissions work when moving directories?

Recently I tried to move a directory that I own to another directory (which I also own), but I couldn't. I then noticed that I don't own the parent directory. This made me wonder what are the rules ...
1
vote
0answers
461 views

Permission issues while setting up cakephp

I am pretty new to linux and trying to setup cakephp on opensuse 12.1. I did as told on the cakephp website(blog tutorial) and most probably encountering some permission issues. I slapped the cakephp ...
3
votes
2answers
313 views

Can AIDE scan a directory inside a directory the user doesn't have read permissions for?

I would like to use AIDE to help me verify the integrity of my home directory on a shared Linux system. I am not an administrator of this system. I have built and installed AIDE in my home directory ...
6
votes
1answer
2k views

Evince fails to start because it cannot read .Xauthority

I'm logged in remotely over SSH with X forwarding to a machine running Ubuntu 10.04 (lucid). Most X11 applications (e.g. xterm, gnome-terminal) work fine. But Evince does not start. It seems unable to ...
0
votes
1answer
2k views

Giving apache user same permissions as root only on specific folders

Not sure if this is possible but is there a way to grant the Apache user same level of permissions (ownership) as root only on specific folder(s). Why I need this: We have a CentOS 6.2 server with ...
3
votes
1answer
554 views

Set GPIO permissions cleanly

Can the default permissions and ownership of /sys/class/gpio/ files be set, e.g. by configuring udev? The point would be to have a real gid for processes that can access GPIO pins on a board. Most ...
3
votes
1answer
3k views

How should I rsync files in /var/www if I want them to be owned by www-data?

I have set up a new ec2 ubuntu box and installed apache and php5. By default you log onto the box with the ubuntu user who has sudo privileges. I believe apache runs as root and php5 runs as ...
5
votes
2answers
294 views

Is it possible to represent the +X symbolic permission with an octal value?

Is it possible to represent the +X symbolic permission with an octal value? The chmod(1) man page says: execute/search only if the file is a directory or already has execute permission for some ...
2
votes
2answers
2k views

can't change file permission

Whenever I create or copy few shell files to usb storage device, then I am not able to make them executable. If I create test.sh, it's default file permission will be 644, but when I execute ...
3
votes
2answers
1k views

What causes files to lose permissions?

There's been more than one occasion where something has gone with system because all the sudden there were permision changes to certain key files (sometimes taking a long time to find which file is ...
3
votes
3answers
219 views

When adding a user to a new group when does the user group permissions become active when its a /nologin user?

I have a service level account to run my webserver, and this user is setup with /sbin/nologin. Normally when you add a user to a group you must logout and login to use the new group permissions. ...
3
votes
3answers
5k views

How to check which Apache group I can use for the web server to write?

I'm trying to make Wordpress work. I currently have this error message: Could not create directory. /var/www/html/wp-content/upgrade/theme_name when trying to upload a theme. This is the ...
2
votes
4answers
3k views

Permissions to deny SSH users from accessing other user's folders

I am currently running Fedora on a network computer, acting as a host to other users who will SSH into my terminal to do their work. However I realised that they are also able to access my /home ...
7
votes
3answers
675 views

Prevent a unix account from being able to SSH [duplicate]

Possible Duplicate: Disable direct login for normal users (like oracle) in linux but allow scp and sftp? I want to prevent a unix account from being able to be SSH'ed with, but it should ...
0
votes
1answer
230 views

Incompatible group permissions in Linux - Is it a bug? [duplicate]

Possible Duplicate: How to apply changes of newly added user groups without needing to reboot? I am on Ubuntu 11.04. I am creating another user and placing an existing user in the group of ...
1
vote
1answer
1k views

How to fix this mysql permission problem?

I'm trying like mad to get rails dbconsole to work (Rails 3.2.6, if that helps). The problem is that when I run the command, I get: gems/railties-3.2.6/lib/rails/commands/dbconsole.rb:81:in `exec': ...
1
vote
1answer
1k views

How to create an user only with SSH -access and easily-set-up .ssh -dir perms?

I often mess up when I manually set up the .ssh -dir, easy to forget some flag. I often need to create a new user and only allowing access with SSH, how can I do that? Basically, I want to stop doing ...
2
votes
2answers
635 views

How to set permissions what users can see (drives, folders) on opensuse 12.1?

I have a several users on one machine and its needed to specify which user can access (read & write) specified folders and/or mounted drives. First of all, one user shouldn't see a ...
0
votes
1answer
601 views

OSX : rmdir “permission denied” but directory removed

This is a question from a newbie trying to learn UNIX commands. I was trying to test the rmdir command by removing a test directory located in my Downloads directory. I have read and write rights on ...
4
votes
5answers
12k views

Device is Mounting as Read Only (Can Copy Files as Root)

I am attempting to mount my Amazon Kindle, 3rd Edition. It automounts correctly and when I run mount -l, I get the following output: /dev/sdg1 on /media/usb0 type vfat ...
1
vote
1answer
497 views

How does apache determine what directory to show from public_html?

I am using Ubuntu 12.04 and have configured apache to serve from ~/public_html. I am trying to serve some directory contents over http on LAN. When I did the following: ln -s ...
2
votes
2answers
533 views

execute bit on directories, but not files [duplicate]

Possible Duplicate: How to apply recursively chmod directories without affecting files? What is the command to apply execute permission for directories (for traversal), but leave the ...
2
votes
1answer
565 views

What is “raw mode in hex” from stat output?

When using GNU stat to probe the filesystem, there are a number of format sequences available for the --format/--printf arguments; this one in particular %f Raw mode in hex doesn't make much ...