Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [permissions]

Access and restrictions of files, documents, accounts, computers, etc.

516
votes
8answers
392k views

How to recursively chmod all directories except files?

How to chmod 755 all directories but no file (recursively) ?Inversely, how to chmod only files (recursively) but no directory ?
274
votes
5answers
338k views

Permissions on private key in .ssh folder?

I changed my permissions in my .ssh folder and now when I use a piece of software that uses my private key, I have to type my password each time. What should my permissions be on my id_rsa file to ...
253
votes
12answers
162k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using:# usermod -G <grouplist> <user>is it possible to force this group assignment to take effect without logging out all running sessions?...
224
votes
6answers
566k views

How can I make chown work recursively?

I've got a directory called pdfs that contains a bunch of sub- and sub-sub-directories. I want to change ownership on all PDF files in all of the subfolders. I just tried this:chown -R someuser:...
160
votes
8answers
506k views

How can I give write-access of a folder to all users in linux?

I installed apache2 on Ubuntu just now, and noticed that the /var/www folder is protected. I can just sudo everything but I would rather just give it write access.How can I do this?I tried sudo ...
105
votes
4answers
169k views

What is the “wheel” user in OS X?

I recently reinstalled iTunes and I noticed something peculiar. The "original" version of iTunes has a user in the permissions known as "wheel" that is set to "Read Only". I dragged this version of ...
95
votes
13answers
163k views

How can I always run the command prompt as administrator?

As a developer, I often have the need to open a command prompt for various purposes. For example, I use iisreset to restart my local web server.I typically open the command window in one of two ways:...
89
votes
9answers
129k views

How do I add a user to multiple groups in Ubuntu?

What's the command line utility and the arguments it requires?
89
votes
5answers
90k views

What does the dot mean at the end of `-rw-r--r--`? How do you set it with `chmod`?

Some of the files in my directories under Linux have a . at the end of the permissions listing. What does the dot mean at the end of -rw-r--r--? How do you set it with chmod?
86
votes
6answers
85k views

recursively change owner windows 7

Somehow I accidentally set all the files in a subfolder to "No Owner' and I can't seem to change all the permissions. I can change one by hand by changing the owner then setting permissions but how ...
82
votes
5answers
55k views

What should I do about com.apple.quarantine?

I've downloaded some .jar files from the internet and want to use them under Mac OS X. But the OS seems to have tagged them with the extended attribute com.apple.quarantine (no indication of this ...
80
votes
4answers
135k views

How to make new file permission inherit from the parent directory?

I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to ...
80
votes
3answers
85k views

How do file permissions apply to symlinks?

Let's say you have this structure:+ directory-- file1-- file2-- file3 -> /tmp/file3file3 is a link to another file3 somewhere else on the system.Now let's say I chmod 777 the directory and ...
73
votes
7answers
40k views

What does the @ mean on the output of “ls” on OS X' terminal?

When doing an ls in a directory I get the following output:drwxr-xr-x@ 12 xonic staff 408 22 Jun 19:00 .drwxr-xr-x 9 xonic staff 306 22 Jun 19:42 ..-rwxrwxrwx@ 1 xonic staff 6148 25 ...
71
votes
2answers
263k views

Linux - Mount device with specific user rights

How can I mount a device with specific user rights on start up? I still have some problems figuring it out. I would like to mount the divide with uid=1000 and gid=1000. My current entry to the /etc/...
69
votes
3answers
183k views

How do I list the groups that a UNIX user is a member of?

With pts m groupname I can list the users in a group. How can I do the opposite - that is, list all the groups that a user is a member of?(I need this to find the name of a group that I know a user ...
61
votes
5answers
203k views

How do I get permissions to delete files on Windows 7?

I updated my laptop's OS from Windows XP to Windows 7. There are some leftover files from Windows XP on the computer now. If I try deleting them I get the following error:You need permission to ...
60
votes
5answers
83k views

File I can't take ownership of

I downloaded a file from the internet (I can link to it here, but in the interests of not annoying other users, I won't post the link), and I can't delete the file with the message:You need ...
59
votes
3answers
135k views

How to run a cron job as a specific user?

I would like to run a cron job as a specific user on my machine. How may I specify the user for a cron job to run as?.The cron jobs will be running on a server (running on Ubuntu 10.0.4). The 'users'...
55
votes
2answers
33k views

Permission to make symbolic links in Windows 7?

How can I grant a particular user the permission to create symlinks in Windows 7?I've searched through "Group Policy" and Google, but haven't found anything.On a side note, is there a way to ...
53
votes
3answers
351k views

Chmod to allow read and write permissions for directory

I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a ...
50
votes
1answer
8k views

If a Chrome Extension is installed but turned off, can it still spy on me?

Say a Chrome extension is turned off and has the permissions: "Read and change all your data on the websites you visit" and "Read your browsing history", or other similar tracking permissions.Can ...
47
votes
3answers
131k views

How to recursively change sharing/permission of a folder in Mac OS X

Is there any Mac OS X tools or scripts which allow me to change sharing/permission properties of files and subfolders in a folder recursively? For example, to let everybody or a specific user able to ...
46
votes
6answers
50k views

Permissionless external drive with NTFS

I have an external hard disk which has 1 partition, formatted in NTFS. I use this drive on multiple computers with a different logins on different machines, Windows XP and Windows 7. All files are ...
44
votes
4answers
62k views

Find all files on server with 777 permissions

I'm looking for a Linux command to go through all the directories on my server and find all files with 777 permission. The output would be a list of all those files with full path.
42
votes
6answers
186k views

Modify fstab entry so all users can Read and Write to an EXT4 Volume

I have an Ubuntu 10.04 box with an EXT4 partition. This partition is set to automatically mount in /etc/fstab. For the purposes of this post, we'll call it: /media/foo. Unfortunately, only root ...
40
votes
2answers
112k views

To create an SSH user who only has permission to access specific folders

I installed SSH, but I found if I use my original account to login to Ubuntu, it has too many permissions.I want to constrain the user to only have permissions for specific folders in Ubuntu. How ...
38
votes
4answers
65k views

Using vim to force edit a file when you opened without permissions

I use vim to edit a file. Sometimes, I forget to have the appropriate permissions. I run vim and the file as a read only file. I can make changes, but I can't actually write the changes. Every once in ...
38
votes
2answers
97k views

Allow specific user permission to read/write my folder

I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that?chown wouldn't do it because I still want to be able to be the owner of ...
38
votes
1answer
29k views

What is the difference between the default groups on Mac OS X?

Two questions:What's the difference between the groups "wheel", "staff", and "admin"? What do they do?specific use case: I'm trying to setup a local CVS repository as stated in the Apple webpage so ...
37
votes
7answers
51k views

Change permissions upon uploading with scp

I am uploading files to my shell account using scp. As I need different permissions on the server than on my computer, I'd like to have a way to easily change the permissions upon upload without ...
32
votes
3answers
143k views

How to set file permissions so that new files inherit same permissions? [duplicate]

I have a folder in which new subfolders and files will be created automatically, by a script.I want to maintain the user and group permissions recursively for all new folders and files placed in the ...
31
votes
2answers
2k views

How much can we rely on filesystem permissions for security?

My question is about filesystem permissions (specifically the Unix style permissions) and how they relate to security.Say I have access to a computer with a guest user account and a user named Bob. ...
30
votes
1answer
72k views

How to recursively set owner or permissions to 'everyone' for all folders and files?

I have an external hard drive attached, and I need to set permissions to be 'free' for the user MyUser. I think I need to set the owner to MyUser also. How can I do this via terminal?
30
votes
6answers
38k views

rsync file permissions on windows

I have an rsync service that syncs files from remote machine to a machine that drops them on a network drive. I need the copied files to take on the native permissions of the destination folder....
29
votes
2answers
86k views

How to specify group with chmod?

I was asked to add group-wrx permissions to a directory in another user's home folder.I believe what I should do is run chmod 771 -R directoryname in the parent directory. What I can't find ...
29
votes
6answers
197k views

Access denied even though I'm an Administrator?

My user account on Windows 7 is part of the Administrators group which has a full control permissions on C:\inetpub\wwwroot:However, when I try to create a folder in it, I get the "access denied" ...
28
votes
4answers
36k views

How solve permission problems for docker in ubuntu?

I have installed docker as described here. I use Ubuntu Trusty 14.04 (LTS) (64-bit). Everything during installation was well. Also command $ sudo docker run -i -t ubuntu /bin/bash completes well (...
26
votes
5answers
48k views

Why can't I delete a file where I have group write permissions on?

I have a file with the following permissions:root:data, and chmod set to 775.My normal user, let's call him boby, is in the data group. Why can't I delete the file with the user boby?rwxrwxr-...
25
votes
3answers
21k views

Recursive chmod: rw for files, rwx for directories

I want to chmod a lot of files and directories. As x indicates list for directories and execute for regular files I'd like to apply rw for files and rwx for directories. Is it possible using only the ...
24
votes
3answers
31k views

Recursively chown all files that are owned by a specific user

Is it possible to find and chown all files that a specific user owns? I did a bunch of things as the wrong user and need to give the correct user ownership of the files.Is there a recursive and ...
24
votes
2answers
17k views

Symlink error when installing MySQL via Homebrew

Trying to install MySQL via Homebrew. The install seems to work fine but i get an error:"Error: The linking step did not complete successfullyThe formula built, but is not symlinked into /usr/local...
24
votes
4answers
22k views

removing write permission does not prevent root from writing to the file

I just noticed on my Ubuntu machine (ext3 filesystem) that removing write permissions from a file does not keep root from writing to it. Is this a general rule of UNIX file permissions? Or specific ...
24
votes
2answers
48k views

How to tar a directory preserving not only permissions, but ownership too

I have to compress a directory using tar.gz preserving not only permissions, but ownership/groups too.And, in this directory there are many files that belong to many users.
24
votes
3answers
198k views

SSH Permission denied on Correct Password Authentication

I could successfully SSH into my machine yesterday with the exact same credentials I am using today. The machine is running Centos 6.3. But now for some reason it is giving me permission denied. Here ...
24
votes
2answers
27k views

How to prevent USB from .fseventsd, .Trashes, .Spotlight-V100 folders and .DS_Store files?

If you give somebody your USB drive to put files on it, it is so annoying to clean up afterwards, all these useless for other than OSX platforms artifacts, which pollute the disk. Is it any solution ...
24
votes
5answers
22k views

How do I start nginx on port 80 at OS X login?

I installed Nginx using homebrew and after completing the installation the following message was displayed:In the interest of allowing you to run `nginx` without `sudo`, the defaultport is set to ...
23
votes
3answers
14k views

Can't execute a script on a mounted external drive

The /mnt/ext is mounted to an ext2 filesystem, an external hard drive. For some reason I can't run scripts from there. Please see the session below.luntain@plato /mnt/ext $ echo "echo success" > ...
23
votes
5answers
29k views

Why would SYSTEM continue locking executable file handles after the app has exited?

I'm seeing strange behavior on my Windows 7 machine; it appears that when an executable runs, SYSTEM keeps a handle to it open for the next minute or so. Here's my most recent encounter:I installed ...
23
votes
0answers
26k views

ls -la symbolics… what does that last symbol mean?

Possible Duplicate:what does the @ mean on the output of ls on os x terminal? when I type ls -la I get this familiar output...drwxr-xr-x+ 38 kent staff 1292 Nov 6 11:09 .drwxr-xr-x ...

153050per page