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)

2
votes
2answers
581 views

Search for file permisions other than 755

In AIX really, how can I search in several directories and those below it, for files that are not of the specific permissions of 755. So I want to search /path/to/, /path/to/mydir, ...
2
votes
2answers
902 views

Is it possible to enable execution of files from a cifs mount in bash?

I have a remote mount with cifs and it would seem there is no way to have bash execute scripts from that mount, is it possible to enable such execution? ls -lh ini* -rwxrwxr-x 1 alan 500 222 ...
1
vote
2answers
735 views

permission reporting on sudoers

I'm looking for a good, consistent and easy way to do a report of sudoers permissions for every user and group on the system. For users, I want the report to include permissions granted via group ...
2
votes
1answer
2k views

How can ubuntu/truecrypt be configured so users can mount volumes if-and-only-if they have proper permissions on the mount-point?

If I add the line: ALL= /usr/bin/truecrypt to the sudoers file this lets all users mount volumes at arbitrary mount-points. The problem is a user could create a truecrypt volume and then mount it at ...
5
votes
2answers
5k views

tail program output to file in Linux

I know we can use below format to redirect the screen output to a file: $ your_program > /tmp/output.txt However when I used below command, it says "-bash: /home/user/errors.txt: Permission ...
0
votes
1answer
897 views

Chmod u-x isn't changing anything and I have no idea why

I'm a user on a Debian machine. When I create a file in my home directory, the default permissions appear to be 700, even though umask returns 0022: eulerz@foo:~$ touch testing eulerz@foo:~$ ls -l ...
21
votes
6answers
7k views

Can a script be executable but not readable?

Is it possible to execute a script if there is no permission to read it? In root mode, I made a script and I want the other user to execute this script but not read it. I did chmod to forbid read and ...
3
votes
1answer
1k views

How do I make all current and future files in a directory readable by a certain group/user?

I have a "Drop Box" directory for students to submit assignments. Its permissions are set to "drwx-wx---" where all of the students belong to the group. This lets them write to but not read from the ...
5
votes
3answers
2k views

logrotate doesn't work for munin after last update on OpenSUSE 11.4

I'm using munin 1.4.5 on OpenSUSE 11.4. Lately logrotate was updated to fix some permission problems and after that complained with Mar 3 12:15:05 lucien logrotate: error: "/var/log/munin" has ...
1
vote
1answer
117 views

Why are directories created with permissions 2070 and files with 060 in a directory with setgid bit?

I have the following directory: $ ll -d neptune drwxrws---+ 5 beamin psych 4096 Mar 7 16:18 neptune $ getfacl neptune # file: neptune # owner: beamin # group: psych # flags: -s- user::rwx ...
2
votes
2answers
255 views

change owner of a file and it's parent directories

I have a file that has 10 parent directories. When I change the file's owner with chown command new owner still can't write to file because the file's parent directories still have a different owner. ...
6
votes
2answers
9k views

Unable to delete file, even as root

I've got a file on remote machine (saying that, cause I don't know who the heck created it), that I've to remove. user@machine:~/folder$ ls lift_proto.db.lock.db And permissions are like this: ...
2
votes
1answer
587 views

403 forbidden issue - .htaccess

I am getting 'Forbidden' 403 problem with my website. Earlier today it worked. The only thing I did was try to access other folders (eg bin). I checked permissions, and it all seems to be looking ...
2
votes
3answers
6k views

Run sudo as another non-root user and save in this user's home directory

I added a new group: ircuser and a new user: ircuser In visudo I placed this line: myuser localhost=(ircuser) NOPASSWD: /usr/bin/irssi Created ircuser directory, where config files, caches, etc ...
2
votes
1answer
1k views

Mount drive from redhat to a windows share with CIFS

I have been trying to mount a drive, but anything i do i get 'Access Denied', I tried: mount -t cifs //192.168.x.x/m -o username=user,password=mypass /mnt/mymount mount -t cifs //192.168.x.x/m -o ...
0
votes
1answer
248 views

Help with a php web program running a shell script?

I'm a sys admin as well as web developer at my job. I have a php program that prompts the user for a number of parameters which then using those parameters must execute a batch shell script. I've ...
1
vote
2answers
1k views

Allow non-root process to access all home directories without compromising security?

Any ideas how to allow one non-root process to access (read&write) all home directories without compromising security? Normal users should not have access to each other's home directories. All ...
3
votes
2answers
2k views

Tar overwrites read only files

I created directory test, created file 1.txt in test, wrote 'Before' in this file. Then I went cd .. and used the command: tar -cvzf ./test.tgz ./test Then I entered the test dir again. Opened ...
1
vote
2answers
2k views

do not allow a directory to be deleted but make new files in it?

The question in my assignment says this: create a directory temp with all permissions for everybody, that cannot be deleted and copy hello.sh in this directory giving execution rights for ...
4
votes
2answers
165 views

System files with strict permissions

Usually, when we run ls -l we can see such picture -rwx...- so the owner always has the full stack of permissions. And usually the owner of the system files is the root. Are there any system files ...
2
votes
1answer
162 views

Permissions UMASK for New Directories

I have a directory "dir1" who's owner is "owner1" and it has 775 permissions. Another user in the same group as "owner1" is called "owner2" Whenever a file is written to "dir1" by "owner2" I need ...
3
votes
1answer
183 views

How do I stop Apache from running as root?

New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before. I started ...
9
votes
1answer
235 views

Make group permissions same as user permissions

I want to set the group permissions for all files and subdirectories within a certain parent directory to whatever the user permission setting for that specific file or directory is. For example, ...
3
votes
2answers
444 views

How to change file permissions for newly generated files in largefiles directory of Mercurial?

I got some Mercurial repositories which are served by Apache over HTTP. But there is a dedicated user performing some automated tests, which needs to check out the repositories locally. Recently this ...
5
votes
2answers
2k views

find files which have a higher permission than xxx

I want to find all files which have a higher permission than e.g. 640. Perhaps this would work with a find and exec command. But my knowledge isn't sufficient for such a task.
1
vote
2answers
48 views

Translating user id when creating image

I want to create an image (for example ext3 image) from a given directory hierarchy. This directory hierarchy is owned by a given user. But on the final image, I want the files to be owned by ...
1
vote
1answer
126 views

transfer permissions user -> group/other

How do I transfer write/execute and execute permissions from owner to group and other, respectively? I have some libraries I want to move to opt and set ownership of to root. Unfortunately, ...
1
vote
3answers
2k views

permission denied when redirecting sudo sed output [duplicate]

Possible Duplicate: Redirecting stdout to a file you don't have write permission on I'm trying to install drupal according to the instructions given in this tutorial: ...
2
votes
1answer
3k views

Denied permission to change ownership

I am trying to change the ownership of a folder and all its contents to www-data, but am being denied permission to change it. I am root. and I've tried using sudo but nothing works. ...
2
votes
1answer
714 views

Permission Denied when downloading Drupal

/var/www$ wget http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz This results in: --2012-02-08 21:20:17-- http://ftp.drupal.org/files/projects/drupal-7.0.tar.gz Resolving ...
5
votes
3answers
2k views

Frustrating issue where neither cron nor su -c runs my job (permissions?)

Updated (and snipped) with more details below. I've set up a cron script and I'm trying to debug why it's not running. [Snipped context testing, which is all ok; see revision 2 for details] The ...
3
votes
3answers
1k views

In Mac OS X Snow Leopard, how can one file's permissions be matched to another?

I need to make the permissions of a file exactly match the permissions of another file in OS X 10.6. I don't see 'getfacl' or 'setfacl' as suggested in some other posts for Linux. And, it doesn't ...
5
votes
1answer
3k views

mv file without write permission to the source file

I just realised that I can move a file that I do not own and don't have write permissions on. I have write permissions to the directory, so I am guessing that is why I could move it, but in this ...
4
votes
4answers
627 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 ...
2
votes
2answers
8k 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
91 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 ...
10
votes
1answer
7k 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
3k views

linux permission, 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
655 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 ...
3
votes
2answers
1k 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
190 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
735 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
241 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
564 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
731 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
512 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
82 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 ...