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

learn more… | top users | synonyms

9
votes
2answers
11k 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 ...
9
votes
4answers
7k 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 ...
9
votes
2answers
13k 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," ...
9
votes
3answers
27k 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
6k 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
39k 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
97k 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" ...
8
votes
5answers
4k 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
8k 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
3answers
720 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
11k 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
41k views

How to grant remote desktop right to a user in Windows Server 2008?

I create a user and add it to group Remote Desktop Users but I cannot still remote using mstsc. The error message said the user/group doesn't have the right to remote. My question is how can I grant ...
8
votes
3answers
32k 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 ...
8
votes
3answers
60k 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 ...
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 ...
7
votes
3answers
61k views

How to change file permissions for a directory in one command

How can I change all the file permissions of a directory in one command in Unix?
7
votes
2answers
338 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 ...
7
votes
2answers
11k 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
2answers
19k 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 ...
7
votes
3answers
989 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
40k 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
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
555 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
4answers
40k 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
9k 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
3answers
13k 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 ? ...
6
votes
2answers
282 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
4answers
1k 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). ...
6
votes
2answers
3k 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
4answers
4k 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 ...
6
votes
3answers
5k 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
1answer
13k 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
4answers
6k 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? ...
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
637 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
4answers
1k views

deleting windows system folder

I want to use an old drive as a secondary hard drive without reformatting. But this old hard drive contains my old Vista installation which takes up gigs of space. I tried changing ownership and it ...
6
votes
5answers
15k 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
20k 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 one ...
6
votes
2answers
12k 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 ...
6
votes
2answers
983 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 ...
6
votes
2answers
8k 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 ...
6
votes
2answers
47 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
696 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 ...
6
votes
1answer
507 views

Permissions issue when trying to execute command in post-commit hook in SVN

I have a dull problem that I can't seem to solve. What am I trying to do? post-review --repository-url=http://xxx.xxx.xxx.xxx/svn/testRepo2 --revision-range=6:7 --server=http://reviews.example.test/ ...
6
votes
3answers
7k views

How to set default permissions for files moved or copied to a directory?

My question is similar to How to set the default file permissions on ALL newly created files in linux - but differs in important ways: I want all files created in (or copied to or moved to) a certain ...
6
votes
1answer
325 views

Code signing issues

I have purchased a certificate from godaddy, which is now in .pfx format. I tried to convert it into .cer using Internet Explorer and Firefox. I tried to to sign midlet using converted .cer, but I get ...
6
votes
2answers
2k views

Windows 7 always asks if I want to open toolbar shortcuts (.lnk files)

I recently upgraded my work laptop, which not has Windows 7 on it. I was unable to pin some applications, so I went about creating toolbars that function like a "quick launch" area, more or less as ...
6
votes
2answers
8k views

Permission denied problem in Freenas + Transmission

Running Freenas 0.7.2 (5543) and Transmission 2.11 The problem it that i can not save a torrent where ever i want.. For example... I can save in: /nmt/1-500gb/Tv/dexter but i can not save in ...