Permissions are the unix way of controlling access to resources such as files, directories and devices and may be specified for an owner, group, or all users.

learn more… | top users | synonyms (1)

4
votes
4answers
681 views

How can I move the entire OS to a different server?

I want to install RhodeCode on a test server at work. However, the internet access is restricted for that server, and RhodeCode has a lot of dependencies (I don't even have Python on that server). So ...
3
votes
2answers
12k views

Mount device with r/w access to specific user

How can I mount some device with read-write access to specific user?
2
votes
1answer
92 views

Restrict local website to selected users

Suppose I have two local websites under /var/www/mysite1 and /var/www/mysite2 via apache I can access them via localhost/mysite1 and localhost/mysite2. The pages are for local use only and I have ...
14
votes
1answer
12k views

Unable to delete file, even when running as root

I am in the process of migrating a machine from RHEL 4 to 5. Rather than actually do an upgrade we have created a new VM (both machines are in a cloud) and I am in the process of copying across data ...
7
votes
2answers
4k views

Group member cannot write even with write permission

The logged in user is a member of a group that has a write permission on a folder. But when this user is trying to write something, "permission is denied". The log below summarizes the question: ...
1
vote
1answer
681 views

Linux Mint system settings locked

The system settings for my Linux Mint OS, for example desktop background or mouse speed or screen resolution etc. won't change, for some reason. I just restarted my computer and for some reason the ...
4
votes
3answers
2k views

Why can't I run programs on another partition in Linux?

So for convenience, I store all my data on my Windows partition so that I can access my data easily from both Linux and Windows. However, I tried compiling a C++ program with g++, and found out that I ...
4
votes
2answers
2k views

Using umask to set group permissions

A long time ago an old friend showed me a way to use an octal or hex umask with a group I think using /etc/profile. I'm not sure. I'm trying to create group on Debian so that every member of that ...
3
votes
3answers
211 views

Permissions for a submission script

I'm a TA for an introductory Python programming class (all work is done from the terminal), and I'm writing a project submission script. Ideally I want a directory setup like this: submissions/ ...
2
votes
2answers
2k views

.sh file cannot be executed without explicitly calling sh

This problem has bugged me so much and I can't find a solution. Sorry in advance if it is a newbie question. Let's say I have a file called run.sh that contains: #! /bin/sh -x x-www-browser ...
2
votes
2answers
774 views

How to detect and stop user from deleting particular file on Linux?

Is it possible to monitor user actions on the file system and prevent him from performing particular actions? Can inotify only monitor actions on the file system? What about fanotify? There's very ...
5
votes
1answer
249 views

suid-root doesn't have effect

A program from apue. #include "apue.h" #include <fcntl.h> int main(int argc, char *argv[]) { if(argc!=2) err_quit("usage: a.out <pathname>"); if(access(argv[1], ...
3
votes
2answers
609 views

How to make a folder request root password to view execute?

I am running Ubuntu 10.04 LTS. I want to use my laptop to play music in a party. MY screensaver does not need a password to deactivate. I would like to allow people to use my computer to play the ...
5
votes
2answers
870 views

Immutable bit on AIX?

Under Linux I can: chattr +i SOMEFILE so that even root can't modify the SOMEFILE. Are there any similar solutions for AIX?
0
votes
1answer
604 views

trouble with irssi and cifs

I'm having trouble getting irssi, the irc client, to write to a mounted cifs share. I have the uid, and gid set to my user as well as setting the permissions on the share to being very permissive. ...
1
vote
2answers
84 views

How can I install programming tools in the root directory so that they can be used by non-admin users?

I'm running OS X and for security reasons my main account does not have admin privileges. How can I install development tools in the root directory so that they can be used by all users? If this can't ...
2
votes
1answer
2k views

NAS box mounted via CIFS - problem with permissions

I'm running the latest version of Ubuntu, and have mounted a SMB share via a line in rc.local. The share mounts correctly, and I can browse files freely, create new files, and then delete them ...
1
vote
1answer
257 views

permission and user/group of a program executed through a script

I am curious, in the following scenario, what kind of permission does a shell script or Java program has (owner/group/other)? There is a script called run.sh, and it in turn calls a Java program ...
1
vote
1answer
77 views

Changing permissions

In the fedora docs they refer to owner and group owner as if both are owners of the file. The leads me to think that any member of a group which tries to change permissions of a file owned by that ...
1
vote
1answer
771 views

Create / Edit files in specific folder using different user / group

I want to know if the following scenario is possible. I am a user called www-admin and I am in the group www-admin. I am also a sudoer. I want to have all the files I create in the folder ...
1
vote
2answers
881 views

Setting up Apache 2 Local Development Environment & Permissions

I frequently find myself encountering problems (usually permissions) when trying to setup a local development server. Or creating a new site (alias). Very common problem is I need to allow www-data ...
1
vote
2answers
192 views

is setting a 0 permission on a directory an effective way to protect its contents?

Let's say that permissions for user and group are set up correctly on a directory. Would a 0 permission for other on that directory provide effective access control for the directory's files and ...
2
votes
2answers
677 views

Can I share a folder inside my home directory with another user?

Can I share a folder inside my home directory with another user? I have two users on a system, agent and daemon. An external server connects as agent and rsyncs files to ~agent/incoming I want ...
27
votes
3answers
17k views

Why can't a normal user `chown` a file?

Why is the chown command root-only? Why can't non-root users use chown to give away files they own?
2
votes
1answer
459 views

Why can I copy files to, but not create files in, this directory? [duplicate]

Possible Duplicate: Redirecting stdout to a file you don't have write permission on I'm trying to create an md5sum for an ISO image created with the Ubuntu Customization Kit tools. The ...
10
votes
2answers
6k views

Uppercase S in permissions of a folder

What does the letter S mean below? The file in question is a folder.                                     ...
3
votes
1answer
82 views

I am the only person with access to my machine. Any reasons to enable group/other permissions on files and directories?

I have noticed that some files in my home directory have read and write permissions for group and even other. If I am the only person who I want to give access to my machine, is there any reason to ...
3
votes
1answer
142 views

Give permission to view files

I am new with servers and I started learning about Cloud servers. My server has Debian. I installed apache, php, and vsftpd and I added users with adduser <user>. Then I gave permission: ln ...
24
votes
9answers
7k views

Why use `chmod 644` instead of `chmod u=rw,go=r,…`?

I've been working on *nix for a few years now, and one of the things I just can't get used to is octal permissions in code. Is there some other reason than line length to prefer chmod 644 ... over ...
2
votes
1answer
463 views

Specific command sequence with sudo and file permissions

I need to allow a certain user access to these commands: sudo sync echo 3 | sudo tee /proc/sys/vm/drop_caches (This particular developer is doing some DB performance testing and flushing the fs ...
5
votes
1answer
393 views

File permissions issue with webserver and ftp server

I have a question concerning permissions. I'm running lighttpd and a ftp server. I want to add a ftp user that is able to upload files to /var/www, which then are viewable in a browser. What is ...
5
votes
2answers
3k views

ISO file readonly?

I have an ISO file and I mount it under /mnt/isofile. Then I copied this file to another folder. But the contents are read-only and belonged to root. I tried to use chmod and chown. But it prompts ...
12
votes
6answers
15k views

Is there a way to stop having to write 'sudo' for every little thing in Linux?

I'm a newbie when it comes to Linux. I do most of my development in a Windows environment. That said, I'm going to be doing a fair amount of PHP work shortly, and I'm interested in learning RoR, so ...
3
votes
3answers
4k views

Automount external storage as user readable and writable in Debian XFCE?

I have Debian Wheezy installed with the latest XFCE desktop environment. In the XFCE settings, I specified that external media be automounted upon insertion. However, when I plug in my USB stick, it ...
3
votes
1answer
198 views

Restricting access to files on an external drive

I was wondering how to restrict access to a specific drive in Unix on the Mac. I was thinking to do this in Terminal where I create a file like this mkfile 6k secure_access. And where secure_access ...
1
vote
2answers
3k views

MySql: LOAD DATA INFILE

I am using MySQL v5.1 on Ubuntu machine. MySQL data directory is /var/lib/mysql/ I have a test.dat file located on /var/lib/mysql/tmp/test.dat I would like to load data from the test.dat file into ...
1
vote
2answers
2k views

Can't access Apache log folder

I want to see apache log file. This is what I tried: I granted most all permissions to apache2 folder. hieund@hieund:/var/log$ sudo chmod a+rw apache2/* But I can't cd to it. So I add my user to ...
7
votes
5answers
928 views

Can I prevent a file from being created?

We have a machine that runs VMware Server. It constantly creates a file called not_configured in /etc/vmware/, which somehow makes our virtual machines not able to be started. I wondered if there was ...
4
votes
2answers
9k views

ttyUSB0 permission changes after restart

I'm trying to install a device. I plug in the device which creates a ttyUSB0 file. When I open it in the program I need it for, it says the permission is denied. I type in terminal sudo chmod 666 ...
3
votes
5answers
2k views

Configure permissions

I'm sharing a git repository with a friend over SSH. He pushes from and pulls to his git repository using my machine's SSH server, where the shared git repository is. Problem is that when he pushes a ...
2
votes
1answer
923 views

New files and folders created, automatically inherit same permissions as parent folder

Does it exist? I create a folder with, let's say, all permissions set, and some services (i.e. Apache web server) create subfolders and put files there (uploaded media files from website users). Such ...
3
votes
2answers
906 views

A question about permissions of hierarchical directories

I have some directories, with following permissions: drwxr-xr-x 18 user1 root 4096 Oct 27 11:25 /home/test1/test2 drwxr-xr-x 24 user1 root 4096 Oct 21 08:38 /home/test1 drwxr-xr-x 492 root root 12288 ...
0
votes
2answers
1k views

Revoke directory access for a particular user in Solaris

I have a need to allow directory access to a particular user on my file system. I want this user to be unable to access any other directory in my file system (initially anyway. It may need access to ...
18
votes
1answer
19k views

How can I start the python SimpleHTTPServer on port 80?

I am using this command on Ubuntu but it is starting on port 8080 and I don't have another server running so I'd like it to start on port 80. I saw ways that you could set up a bash script to do ...
1
vote
4answers
864 views

chmod - change permissions on a file

I have a Python virtualenv, and the Python executable is located in the /bin directory. In this virtualenv I'll have to execute some unsafe code, that can damage my system. I tried to chmod a-r on the ...
2
votes
2answers
4k views

Why do I immediately get a “Permission Denied” error on login, even with root?

I have a weird problem on my notebook. When I want to login to the system (for example on tty1), immediately after I put in my username I get a Permission Denied error, even with root! I booted a ...
0
votes
1answer
952 views

Unable to login to linux machine

I can't login to my linux machine. It's giving me the following error: /usr/libexec/gconf-sanity-check-2 exited with status 256 I removed all the files in the /tmp directory after this issue ...
3
votes
3answers
314 views

Setting execution right to whole directory - is it good or bad idea?

I have a zip file containing lot of files and directories for a certain application which should be running on Linux. Some files needs to be set as executable, but the zip file format afaik does not ...
1
vote
1answer
237 views

How to search folder with only x set (execution) permission

I have read that if folder has only x set permission to execute it actually means that you are permitted to search this directory. So how to search it?
5
votes
5answers
252 views

Is there a way to see the permissions of all the intermediate directories of a path..?

I have a file path.. Is there any single command to see the file/directory permissions of all the intermediate directories in the path..?