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.
5
votes
4answers
1k views
Allow users to run only specific binaries with root permissions/privileges
I would like to allow a specific user to be able to sudo /sbin/iptables only.
I have a bash script which configures iptables. The problem is that configuring /sbin/iptables as sudoable is not enough ...
2
votes
1answer
55 views
Creating Directories: with Permissions
I need to create a directory that is RW to all users using chown. what arguments should I pass chown to get a file with those permissions? Or maybe there is an even better way to do it......
5
votes
3answers
7k views
Correct permissions for /var/www/html?
I'm able to write changes in the home directory, but when it comes to the /var/www/html folder, it's not allowing me to make any changes or create new files or folders.
I'm able to view the files in ...
3
votes
1answer
190 views
Which user group can use the 'tap' net device?
I use the 'tap' net device with KVM to get my vm connect to the Internet. But I have to be root, or use 'sudo', which is inconvenient. I think I can put my user account into some group so I can access ...
2
votes
0answers
483 views
Permissions for Apache and FTPd users
I'd like advice about permissions on directories and files on a web/ftp server.
Here is my situation:
Debian Server with those user:group
userme:userme for SSH
www-data:www-data for apache/php
...
2
votes
1answer
1k views
In Linux, “Write” Permission Is Equivalent To “Execute” For Directories?
The Execute permission makes sense for files (which include scripts etc), but when it comes to directories, write (w) permission works the same way as execute (x), right? Which means, if we are giving ...
5
votes
4answers
10k views
How can I create and grant a normal user with root privileges?
I'm wondering how to create and grant a normal user (for example, named 'sybase') with root privileges?
I found useradd, adduser, and passwd to be useful, but are there any other files to modify to ...
3
votes
1answer
131 views
mounting volume protected against user access
I need to mount a directory in a way that prevents user accessing it. However I need to have access to all attributes (including permission) from root. Is following method safe or is there a way ...
4
votes
1answer
2k views
Why does root get Permission denied when accessing FUSE directory?
I use a FUSE filesystem with no problems as my own user, but root can't access my FUSE mounts. Instead, any command gives Permission denied. How can I give root the permission to read these mounts?
...
4
votes
2answers
862 views
Selinux is denying access to mysqld
I have a script that dumps a mysql database. It then compresses the file and this gets stored in my home folder by using cron. The problem is I seem to be getting an error message.
mysqldump: ...
1
vote
1answer
1k views
Permissions issue with git
I have a development machine that use runs on CentOs.
Whenever i pull from git using git pull i get "permission denied" issue/error.
Git apparently doesn't have the permission to overwrite the ...
1
vote
3answers
489 views
Is it Safe to chown on /usr/lib?
Can I do this?
sudo chown -R myUsernName /usr/lib
I mean can I do this without worrying that my OS will be broken? Or permissions will be screwed up?
Here is the reason why I would like to do it
...
4
votes
2answers
6k views
How to get back sudo on Ubuntu?
I have done this:
sudo chown -R myname /usr/
and now I can't use the sudo command because of this error:
sudo: must be setuid root
And as I read this means that the owner of this file ...
3
votes
2answers
5k views
Permissions “problem” using SCP to copy to root owned folder from local
I'm taking some early forays into setting up a basic LAMP box. It's my first time setting up the software I'll use as opposed to just being handed a working environment, so go easy on me :)
I have ...
5
votes
2answers
655 views
What roles do DAC (file permissions), ACL and MAC (SELinux) play in Linux file security?
I need some clarification/confirmation/elaboration on the different roles DAC, ACL and MAC play in Linux file security.
After some research from the documentation, this is my understanding of the ...
4
votes
3answers
9k views
Problem to launch java at Debian: “error while loading shared libraries: libjli.so”
I'm trying to launch java:
$ java -version
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
$ ldd ...
2
votes
2answers
395 views
How do I reset ownership on /usr/bin/sudo on centOS? [closed]
I accidentlly changed ownership of /usr/bin/sudo to my current user (i also did this for some other stuff in my /usr directory). I can't change any of them back because I need ownership of ...
3
votes
2answers
633 views
FIle permission execute only
How can I set file to be executable only to other users but not readable/writable, the reason for this I'm executing something with my username but I don't want to give out the password. I tried :
...
3
votes
2answers
95 views
Can I run a command with specific privileges on certain directories?
I would like to be able to run a command, passing in parameters to bash or similar, such that this command is not allowed to write to a particular path, overriding the user's other privs.
Eg:
...
4
votes
1answer
233 views
ACL mask does not work as expected
If I copy a file with a base ACL of:
u::rw-,g::r--,o::r--
into a directory with a default ACL of:
u::rwx,g::r-x,g:users:rwx,m::rwx,o::r-x
I obtain a file with mask of m::r--. I would have ...
1
vote
2answers
692 views
permission denied when executing a binary
I used these instructions to install mongodb on my OS X machine. I did not make the files owned by root though, I used my local user (markdsievers), and installed to /usr/local/mongodb and ...
1
vote
2answers
161 views
Weird executabe behaviour
I have a server machine with ubuntu 9.10. I am trying to put in place an executable, which turns out to be the latest flashplayer (debugger version).
Somehow the file appears as present and ...
5
votes
2answers
408 views
How to prevent user from changing files using linux permission
Is it possible, using linux permission scheme, to allow users create files but not edit or delete them at a later time? I mean, we have a delivery folder where users put artifacts there and we do not ...
2
votes
1answer
434 views
pure-ftpd permission denied on external usb drive
I have a sheevaplug PC (Debian installed) that I'm trying to setup my personal FTP server with. So far I was able to set up auto mounting and installed pure-ftpd. I currently have autofs setup to ...
10
votes
2answers
3k views
What is the difference between 'su -' and 'su root'? [duplicate]
Possible Duplicate:
Why do we use su - and not just su?
I understand that root doesn't have to be a superuser. But in the case that it is ... what is the difference between sudo su - and ...
2
votes
1answer
7k views
How to move a file to /usr/local in Ubuntu?
I am working in the most recent Ubuntu in a 64 bit machine. I am currently on the
Gnome command prompt and I am trying to move a file under the Downloads directory to /usr/local. However, it gives me ...
2
votes
2answers
2k views
how to chown mounted device?
When I plug in my external hard-drive when running KDE, it prompts me to mount the device (by clicking an icon, no sudo involved), and once I've done that I am the owner of the files. This is great.
...
1
vote
2answers
597 views
newgrp and groups assigned via pam_group.so
For convenience reasons I tend to assign special group memberships like floppy, audio, plugdev, video etc. via /etc/security/group.conf (pam_group.so) mechanism instead of adding all users to this ...
4
votes
2answers
10k views
How to add a ssh user who only has permissions to access specific folder?
How to add an ssh user who only has permissions to access specific folder?
useradd -d /var/www/xyz.com.tr/musteri -s /bin/bash -g sshd musteri
I created a user called musteri. I set its home ...
2
votes
1answer
226 views
How can I limit wine's permissions?
I don't want wine to:
have access to the network (extra: separately defined access control per program that uses wine to start)
have access to the main users files (run wine as different user??)
...
1
vote
2answers
101 views
Terminal command (called not from SU) that would restrict process from writting to all directories but one?
We have an app testApp. We have a folder called notRestricted in the directory where we run app from. We want to limit access of the app to file system so that app could write only to that folder (we ...
1
vote
1answer
717 views
reading cifs share fails with permission denied - cifs samba directory permission denied
I'm trying to setup a samba server to share data among clients via cifs. As a test, I mounted the samba share on the same machine and tried to access the contents of the directory. The mount command ...
2
votes
2answers
322 views
I can create a file but I can't read from it
I've been using linux for a while, but I always had root access, so permission problems were no big deal. But now I don't have root access and it's driving me mad.
I have a ssh access to a web ...
4
votes
2answers
123 views
How can I give a very stripped down login for viewing logs?
I have various log files in folders on an RHEL 5 system:
/var/log/syslog-ng/A/
/var/log/syslog-ng/B/
/var/log/syslog-ng/C/
I would like to be able to give certain users the rights to view/tail (but ...
6
votes
2answers
2k views
User can't touch -t
When SCP'ing to my Fedora server, a user keeps getting errors about not being able to modify file timestamps ("set time: operation not permitted"). The user is not the owner of the file, but we cannot ...
1
vote
1answer
2k views
“Error: permission denied” error from Transmission Client
i have done the following on my Asus WL-520gu
Installed the dd-wrtv24-sp2 mini svn:13064
Updated for usb support
Installed optware package
Activated the transmission client
but i keep getting a ...
1
vote
1answer
351 views
Different access rights for different groups for a folder on Linux
I have a folder on a Linux machine that I would like to be read only for members of one group, read write for members of another group, and read write for the owner. Others would not be able to access ...
1
vote
0answers
297 views
W2K3 DC: Samba file sharing access permission problem
I want to access SAMBA shares from a Windows Server 2003 domain controller without a password. But, I am receiving a permission error each time. I'm using RedHat 5.5.
# ls -l
total 96
-rw------- 1 ...
0
votes
1answer
526 views
Changing owner of NAS drive
I have setup a Freenas system that I would like to mount on my Ubuntu Desktop. Freenas is configured with cifs service.
When I open the freenas server in nautilus smb://freenas/homenas/ I can create ...
7
votes
5answers
1k views
Directory with +x permission, parents without it. When would this be useful?
Say I have a folder called folder in the following path:
my_path = /a/b/c/d/e/folder
and a file called file in that folder.
Then, say I run this command to remove group permissions under /a/
> ...
11
votes
2answers
4k views
Do the parent directory's permissions matter when accessing a subdirectory?
If I have a root folder with some restrictive permission, let's say 600, and if the child folders/files have 777 permission will everybody be able to read/write/execute the child file even though the ...
3
votes
2answers
365 views
How does the Unix file privilege system differ from that of Windows?
Related question: How does the Linux file system/organization differ from Windows?
I am somewhat familiar with how privileges work when it comes to files and directories - each entry has an owner and ...
10
votes
4answers
2k views
Wrongly set chmod / 777. Problems?
I was trying to run chmod -R 777 ./ but ended up typing chmod -R 777 / and set 777 on my entire machine. What can go wrong? How can I fix it?
2
votes
3answers
306 views
process that only root can run
I have created a process and it is running in the background as a daemon it.Now I want that only root should be able to view the output of that process.My process is something like "top" which ...
3
votes
3answers
1k views
How can I setup group permission for different user on multiple Linux installations?
I have two Linux installations on my computer, with /home on a different partition but shared for the two installs. And each install has a different username to avoid conflicts. The thing is, I'm a ...
8
votes
3answers
6k views
Make all new files in a directory accessible to a group
Suppose I have two users A and B and a group G and a folder foo, both users are members of G (using linux and ext3).
If I save as user A a file under foo, the permissions are: -rw-r--r-- A A. ...
4
votes
1answer
986 views
Symbolic link permissions
I have access to a remote Linux machine where everytime I create a symbolic link, it is created by default with the following permissions: lrwxrwxrwx
If I try to change the permissions of the ...
1
vote
1answer
1k views
How do I change permissions on an external hard drive in Arch Linux?
Permissions to my portable hard drive on Arch is read-only and it seems I can't change it- when I change it from the GUI it takes no effect. So, how can I change it through the terminal?
Is there ...
4
votes
2answers
165 views
Directory special permission problem
When I write:
chmod g=rws,u=rwx,o=rx folder_name
I get:
drwxrwSr-x
But S is not the same as s, right?
1
vote
1answer
394 views
Temporary Permissions when installing DokuWiki?
I'm trying to upgrade to the latest version of DokuWiki, and I'm finding that the easiest way to do this is to install the upgrade plugin and just click a few buttons. But there are permissions ...