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

learn more… | top users | synonyms

68
votes
6answers
167k 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 ...
40
votes
3answers
55k 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 ...
40
votes
3answers
63k 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 ...
38
votes
13answers
53k 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 ...
35
votes
6answers
20k 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 ...
35
votes
9answers
47k views

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

What's the command line utility and the arguments it requires?
35
votes
5answers
20k 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 ...
34
votes
5answers
143k 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 ...
33
votes
4answers
57k 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 ...
33
votes
3answers
64k 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 ...
28
votes
5answers
26k views

recursively change owner windows 7

Somehow i accidentally set all the files in a subfolder to no owner and i cant seem to change all the permission. I can change one by hand by changing the owner then setting permissions but how can i ...
27
votes
4answers
33k 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 ...
24
votes
2answers
54k 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 ...
23
votes
7answers
5k 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 ...
23
votes
0answers
20k 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 . ...
20
votes
3answers
20k 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 ...
19
votes
3answers
31k 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?. I am running on Ubuntu 10.0.4 [Edit] The cron jobs will be running on a ...
19
votes
6answers
50k 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 ...
18
votes
3answers
41k 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 ...
17
votes
2answers
27k 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 ...
17
votes
2answers
854 views

What does the trailing “+” mean in file permission bits in Linux?

I used ls -a to list a file and got the following information: sqyang@intel4-88: ls -a 123 -rwxr-xr-x+ 1 root lsf 16845584 Nov 25 21:38 123* The file permission part is -rwxr-xr-x+. What does the ...
16
votes
3answers
40k views

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 ...
16
votes
1answer
12k 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 ...
15
votes
10answers
16k views

Mac OS X - Could not start Terminal.app - shell has illegal value

I can not run the Terminal.app after rolling back my system from time machine. Mac OS X Version 10.6.2 It displays the following error. "Your are not authorized to run this application" "The ...
15
votes
4answers
20k 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.
15
votes
3answers
48k 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 ...
15
votes
1answer
14k views

How do file permissions apply to symlinks?

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

fine-grained sudoers configuration (allowed commandline arguments)

is there a straight-forward way to allow a user to run (for example) /usr/bin/pacman -S -u as root, without allowing him to run /usr/bin/pacman -S -u some_package ? The line user ALL=(root) ...
14
votes
7answers
12k 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 ...
13
votes
2answers
30k views

How can I create an SSH user who only has permission to access specific folders in Ubuntu?

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 ...
13
votes
5answers
13k 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 default port is set to ...
13
votes
4answers
26k views

How do I manually mount a linux file system read/write as a normal user?

This may seem like a stupid question, but with most Linux stuff, it seems to me that a lot of trivial things are not documented. Anyway, I want to simply mount an ext4 file-system onto a normal mount ...
13
votes
2answers
7k views

Is there a way in Linux to update the user/group properties without having to login again?

After I edit /etc/group and I add a user to groups it didn't belong to, the user will not be able to use it's newly acquired privileges unless it starts a new session. Is there a command to refresh ...
13
votes
5answers
20k views

How to set default permissions for automounted FAT drives in Ubuntu 9.10?

I've got many FAT32 drives that I'd like to mount in Ubuntu such that they have permission mode 700 for directories and 600 for all other files. By default, they have 755 for all files, which is not ...
12
votes
3answers
5k 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 ...
12
votes
4answers
8k 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 ...
11
votes
4answers
7k views

Using git through cygwin on windows 8

I've got a windows 8 dev preview (not sure if it's relevant, but I never had this hassle on w7) machine and I'm trying to clone a git repo from github. The problem is that my ~/.ssh/id_rsa has 440 ...
11
votes
3answers
7k views

What does the “execute” permission do?

I am shocked that I still don't understand "Execute" permission in Linux. There are three permission - read, write, and execute. I understand that read and write literally, but what does execute do ...
11
votes
3answers
14k 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. ...
11
votes
2answers
7k views

How to make files created in a directory owned by directory group?

Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?
11
votes
2answers
6k 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 successfully The formula built, but is not symlinked into /usr/local ...
11
votes
1answer
9k views

Unix: Is there a way to “copy” file or directory permissions?

I have two files in a directory. One has correct permissions and the other has not. Is there a way I can "copy" the set of permissions from one file to another?
11
votes
2answers
7k views

How to bind old user's SID to new user to remain NTFS file ownership and permissions after freshly reinstall of Windows?

Each time we reinstalled Windows, it will create a new SID for user even the username is as same as before. // example (not real SID format, just show the problem) user SID -------------------- ...
11
votes
2answers
4k views

Homebrew won't link git

When I installed git or upgrade git via brew I couldn't link it with brew link git. If I try sudo brew link git I get: cowardly refusing to sudo brew link It says that I have to check the ...
11
votes
2answers
147 views

Is it possible to discover the current owner of a folder?

I am running the Windows 8 Enterprise x64. Here are the current security settings for a folder on an NTFS volume: I have access neither to the folder contents, nor to its security settings nor its ...
10
votes
3answers
908 views

How to make a file editable by two different users in different groups?

I have a folder at /home/www/, and the owner is www, which is part of the www-group. I have another user, john, part of the john group. How can I chown /home/www/ to make it writable by both www and ...
10
votes
3answers
4k 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" > ...
10
votes
1answer
6k views

How do I set default group ownership for files in a directory?

I am running a cakephp webapp on Linode LAMP. I am finding that my temp files are created with root:root ownership. But the webapp is running with Apache's permissions (www-data). This causes ...
9
votes
11answers
3k views

Unix: How can I allow only one person to see my folder in the same fs?

I want to give an access to a dir for a friend. He has the access to the file system, where the dir is located. I don't want to set the permissions to all users. How can I allow only a person to see ...
9
votes
5answers
122k views

How do I get permissions to save in a folder that Windows 7 denies me from?

I'm getting this message - You don't have permissions to save in this folder - even though I am the only user on this machine, and administrator. How can I set permissions for myself to do ...