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

learn more… | top users | synonyms

11
votes
2answers
8k 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
3answers
40k views

How can I automatically set write permissions on mounting a usb drive in linux?

When I mount an external usb drive on linux (CentOs4), the permissions are by default set to read-only. Since there are multiple users on the computer who need to use the external drive, I want ...
11
votes
2answers
19k views

How does the “Full Control” permission differ from manually giving all other permissions?

On Windows Server 2003 - and some other versions of Windows - the Properties > Security tab of a folder's or file's context menu provides "Allow" and "Deny" options for "Full Control," "Modify," ...
11
votes
5answers
10k 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? ...
11
votes
4answers
33k views

How to prevent a file from accessing the internet?

There are some .exe and .dll files belonging to some programs on my laptop which communicate with the internet without my permission (for self-update generally). I want to prevent those files one by ...
11
votes
2answers
5k 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
263 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
1k 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
2answers
13k views

How can I setup a group writeable directory?

$ whoami meder $ cd /var/www $ sudo mkdir html $ sudo groupadd web $ sudo usermod -a -G web meder $ sudo usermod -a -G web medertest $ sudo chown meder:web html $ sudo chmod -R g+rwx html The ...
10
votes
1answer
5k views

Why can't I chown a VirtualBox shared directory?

I'm trying to recursively chown a VirtualBox shared folder, but I can't get it to work: $ ls -lah total 16K drwxr-xr-x 4 root root 4.0K Aug 1 2012 . drwxr-xr-x 23 root root 4.0K Jul 21 2012 ...
10
votes
1answer
8k 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 ...
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
139k 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 ...
9
votes
2answers
2k views

cannot access /dev/null: Permission denied, although crw-rw-rw- 1 root root 1, 3 Sep 21 12:05 /dev/null

On user postgres: $ ls -l /dev/null ls: cannot access /dev/null: Permission denied Thought on user root, permissions are correct: # ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Sep 21 12:05 ...
9
votes
3answers
37k views

Access to CD/DVD Drive is Denied through Windows 7 Explorer (Permission Problem)

A while ago I started having trouble with my optical drives. Both of them keep showing up in Explorer as CD/DVD drives on boot, but as soon as I put a disc in either one, it suddenly turns into a ...
8
votes
3answers
1k views

Logged in to vi, made changes, forgot to sudo first - now what

I made lengthy changes to a configuration file on a Ubuntu Linux computer with the vi editor. Unfortunately, I forgot to sudo first, so now I'm in the editor, but can't save my changes because of ...
8
votes
9answers
42k views

How do I retrieve files from Time Machine backups from another computer?

Really it's the same computer - I just did a fresh install of Snow Leopard. When I try to open the Documents directory from my old user account I get The folder "Documents" can't be opened because ...
8
votes
5answers
5k views

How do I tell sudo to write files with a umask of 0022?

I recently upgrading to Snow Leopard. I have noticed that some files written by MacPorts are installed with the wrong permission -- they are written with a umask of 0077. I think I have narrowed down ...
8
votes
4answers
6k views

Linux Group Permissions not being enforced correctly.

I am running Ubuntu 10.04 server and am having some very counter-intuitive experiences with users/groups. For example: sudo touch test_file # create empty file sudo groupadd test ...
8
votes
2answers
514 views

How does an operating system prevent an unprivileged process from executing a privileged instruction?

In Unix, if you are a guest user and did: chmod 777 / It would fail. But how does this internally happen at the hardware level? So far, I think this is what happens: The OS tries to execute ...
8
votes
3answers
1k views

Linux shutdown permission

Suppose you install a desktop environment, say ubuntu or debian. You can shutdown the system by clicking a button somewhere on your system menu as a normal user. You don't need to switch to superuser ...
8
votes
5answers
15k views

sudo chmod -R 777 /

sudo chmod -R 777 / I did this. It was a mistake. Is there any way to undo it? Basically it's messed up more things than I can list. I don't have time-machine enabled on my mac.
8
votes
2answers
13k views

How can I lock a folder so that it CANNOT be erased?

On my computer running Windows XP Pro SP3 I have a folder on my desktop that is very important. How can I lock it so that I can alter anything in it, but the folder itself cannot be removed without ...
8
votes
5answers
20k views

How to reset folder permissions to their default in Ubuntu?

I recently typed the command sudo chmod 777 -R / after that some things like sudo -i are not working normally. So I am wondering if there is any way I could reset the folder permissions to their ...
8
votes
2answers
21k views

rsync set group owner, group permission

I want to use rsync to transfer files from my computer to a remote Linux system. Regardless of the local file's group ownership, I want to set these values on the remote side. If I was on the remote ...
8
votes
2answers
4k views

NTFS Permissions - SYSTEM

Are there any possible side effects to removing permissions for SYSTEM on an NTFS directory? It is a non-system (user documents) folder. I know the obvious (i.e., that SYSTEM will no longer to be able ...
8
votes
2answers
12k views

Setting differing ACLs on directories and files

Quick ACL question: I want to set up default permissions for a file share so that everyone can rwx all of the directories and so that all newly created files are rw. Everyone who is accessing this ...
8
votes
3answers
7k 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 ...
7
votes
1answer
3k views

Linux - group member cannot delete file with rw permission

Below shows a file, /tmp/testfile, owned by user1 with group changed to wheel that also includes user2. The file has rw permission for the group. So shouldn't any member of the group be able to delete ...
7
votes
4answers
49k views

Can't change permission/ownership/group of external hard drive on Ubuntu

I have an external hard drive connected to my Linux box. I wanted to setup a web server to access files on it, but the permission on all files and directories on the drive are rwx for the owner which ...
7
votes
2answers
13k views

Can't cd into my own directory?

On an EC2 instance I have changed Apache's log location to a different directory than the default. This is so that I can hold the logs on a (non-boot, only data) EBS. However, I can't cd into the ...
7
votes
4answers
20k views

Running Apache as a different user

When I run the ps -efH command to list out all the process, I can see Apache running as root and seems to have sub-processes running as www-data. Here's the excerpt: root 30117 1 0 09:10 ? ...
7
votes
4answers
2k views

How can I recursively set read-only permissions?

I have a very large and deep directory. I would like to make all of it read only. The problem is I guess I have to distinguish between files (which will get a=r) and directories (which will get a=rx). ...
7
votes
3answers
21k views

PHP script can't run bash script. sh: Permission denied

I'm trying to exec a .sh script from PHP, however it is not executing. I checked the error logs, and I'm getting the 'sh: Permission denied' error. I checked under which user php is being run, and ...
7
votes
3answers
1k views

How do I administer /var/www?

I'm new to Linux and I'm trying to setup a small testing server inside of a VM running Ubuntu Server. I've found the /var/www folder and it should be the one where my Apache documents are stored, in ...
7
votes
2answers
4k views

Ubuntu Linux server - set file permissions for VirtualBox shared folder

I have Ubuntu server with Apache 2, PHP, and various DBMSs running in VirtualBox on my Mac host for my web development work. To easily create/edit the files I'm working on, I mounted a directory from ...
7
votes
3answers
51k views

How to get a command prompt in Ubuntu?

How do I get a command line in Ubuntu? I just installed it on a USB disk and it runs great, but I found I could not write files to the /etc/var/www folder, which is the Apache server default root ...
7
votes
2answers
1k views

Why is the output from `groups` different from `groups user` if Im currently logged in as user?

Im not sure why the following have different output. My understanding is that groups without specifying a user give all the groups the currently logged in user is a member of. jacob@box:~$ groups ...
7
votes
2answers
69k 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 ...
7
votes
1answer
3k views

Windows 8 messed up my Windows 7 user folder permissions

I installed Windows 8 pro today and accessed my Windows 7 user profile folder (C:\Users\xxx) and it showed me an access denied error with a continue button with UAC symbol over it, I hit it and it ...
7
votes
2answers
228 views

How can I be sure that a Google Chrome extension isn't doing evil things?

I wanted to install this extension, but I have security concerns. The extension needs permission to "Access your data on all websites". This makes sense, but I presume this includes password and ...
7
votes
6answers
3k views

Why does moving large folders take a lot of time?

I have a large folder with >100k files. I moved it into my archive folder and its taking forever to move. Why is that? I know on XP it takes less than one second but not on Windows 7. I am sure its a ...
7
votes
2answers
714 views

Unable to use NTFS partition for Dropbox in Linux

Dropbox won't let me choose the sync folder inside a NTFS partition. First thought I had was mounting and its permissions (the Dropbox installer does let me choose my linux home as the Dropbox home). ...
6
votes
6answers
2k views

What rights does an employer have to the employee's computer?

What access rights should an employee grant an employer for a work computer? For instance, let's assume that the business people come to the IT lab late at night for discussions with the CIO and ...
6
votes
3answers
6k 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 ...
6
votes
6answers
1k views

How can I prevent data theft from a company? [closed]

How can I prevent data theft from a company? Are there any solutions to this problem? Is there any software that encrypts important data (.doc, .xls, etc.) and prevents it from copying? I need a ...
6
votes
3answers
10k views

Permissions restoring from Time Machine - Finder copy vs “cp” copy

Note: this question was starting to sprawl so I rewrote it. I have a folder that I'm trying to restore from a Time Machine backup. Using cp -R works fine, but certain folders cannot be restored with ...
6
votes
1answer
45k views

Granting write permissions to www-data group

I am creating a website and part of the function is to write out user generated data with php. I'm using nginx on Ubuntu 13.04. A the moment I'm only testing and everything is served through nginx on ...
6
votes
2answers
299 views

Why do some packages require their own user to run?

Why in SVN, Apache, and many other programs, does the admin have to create a new user just for the server to use?
6
votes
3answers
14k views

Windows 8.1: administrator account has access denied to other partitions

UAC is activated for the administrator. With Windows 8 everything is okay. After the upgrade to 8.1, the administrator account is denied to access the every partition except the one containing ...