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

learn more… | top users | synonyms

10
votes
3answers
36k 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 ...
10
votes
4answers
8k 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 ...
10
votes
2answers
16k 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," ...
10
votes
5answers
8k 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? ...
10
votes
1answer
8k 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
131k 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
5answers
109k 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" ...
9
votes
1answer
746 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
32k 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 ...
9
votes
1answer
7k 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 ...
8
votes
9answers
41k 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
2answers
426 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
13k 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
10k 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
2answers
20k 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
3k 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
10k 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
4answers
26k 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 ...
7
votes
2answers
12k 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
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
4answers
5k 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 ...
7
votes
4answers
16k 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
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
3answers
16k 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
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
46k 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
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
189 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
625 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
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 ...
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
4answers
44k 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 ...
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
2answers
294 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
1answer
26k 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
4k views

chmod if I am not root/file owner

If I am not the file' owner or root, can I use chmod to change the file permission? Assume I have group/write access to the file, e.g. 775
6
votes
3answers
9k 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 ...
6
votes
3answers
4k views

How can two users be the owners of a file?

As per the title, I have to create a file, for example: /home/john/file.ini I created a user and a group, myuser and mygroup, and set them to be the owner and group of this file.ini: chown ...
6
votes
1answer
15k views

Setting up VSFTPD permissions with Apache server

I have a VM running Ubuntu 10.10. I'm using Netbeans and uploading files to an ftp on the virtual machine. I'm using vsftpd. The problem I'm having is, the owner of the folder /var/www is the user ...
6
votes
2answers
4k views

How does local_umask and file_open_mode work?

I had some problems with the filepermissions when local users uploaded their files via vsftp to a server. I wanted the files to have all 766 permissions. After a lot of trial and error I found out ...
6
votes
4answers
774 views

How can I trace NTFS and Share Permissions to see why I can (or can't) write a file

I'm trying to track down WHY I can write in a folder that, by my best estimation, I should not be able to write. The folder is shared with "Everyone" has "Full Control", with the files being more ...
6
votes
5answers
17k views

How to reset folder permissions to their default in Ubuntu 9.10?

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 ...
6
votes
3answers
24k views

Windows 7 indicates “you need permission to perform this action” (deleting file)

I'm logged in as an Administrator on Windows 7. When I try to delete a folder (which shows Security settings indicating that Administrators have FULL access) I get a message that : You require ...
6
votes
2answers
49 views

discover the directory that prevents a file from being read in linux

i'm getting a permission denied for a user in a really long path. $ sudo sudo -u user cat /l/o/n/g/path/file Permission denied i'm pretty sure path and file have permissions for that user. Is there ...
6
votes
3answers
794 views

Grant permission to manage another users processes

I have userA and userB who start processes: userA@server:~$ ./some_command.sh & [1] 30889 I then want userC to be able to manage those processes (suspending, resuming, terminating, and ...