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)

-1
votes
1answer
18 views

A command showing if I have the right to perform writing?

I'm searching for a command which only says if the current user has r-rights (read) on the file passed as a parameter. This command could be something like haveIRights -x <file> and it has to ...
5
votes
3answers
661 views

How does the OS know that a command needs sudo?

When you run an executable, sometimes the OS will deny your permission to. For example running make install with the prefix being a system path will need sudo, while with the prefix being a ...
1
vote
2answers
33 views

relation between chmod and sudo on an executable file

What is the relationship between chmod and sudo on an executable file for a user? Are the cases that "a user needs sudo to run an executable" the same as the cases that "chmod hasn't set the ...
-6
votes
2answers
46 views

How to you create directories and set permission? [on hold]

How do you create three directories in /storage named campaigns, financials, and public. Also, I'm wondering how to set the file access permissions as follows: campaigns – marketing group has full ...
-3
votes
2answers
30 views

How do I run as a limited user while logged in as Root, and another question

Is there a way to, on linux, do: run as limited user when logged in as root? (like sudo but vice versa, so instead of GRANTING rights, it limits them, i.e., for use with "bundle install" for missing ...
4
votes
2answers
185 views

Should /usr owner be root?

After having installed the MySQL database on openSUSE I realized that for all files in /usr/bin the owner was changed to the "mysql" user of the "mysql" group. Maybe there was some mistake of mine. ...
1
vote
1answer
104 views

How to disable local file writes?

I maintain a shared public computer. Every user has their own directory in /home. We don't like to make /home a network mount because it takes a long time for new users to login, but we would like to ...
0
votes
2answers
40 views

-bash: /dev/null: Permission denied

I'm trying to create a new user on a Centos 6 system. First, I do useradd kevin Then, I tried to run commands as that user su - kevin However, I get the following error messages -bash: ...
1
vote
1answer
33 views

How can a permission a directory so that a user can list the contents, but cannot read them

I am setting up a vstpd FTP server where people can upload files to be processed. I want them to be able to write and see the list of files, but not actually download them. I'm using virtual users ...
1
vote
2answers
50 views

Unable to get rid of root user and privileges

I am told that the most basic security to set up in Linux is to change the superuser name from root to something obscure so I run these steps to add new user $ /usr/sbin/adduser new_username $ ...
1
vote
2answers
55 views

-bash: cd: .ssh/: Permission denied

When I type in cd .ssh in terminal, it returns with -bash: cd: .ssh/: Permission denied. Now I cannot add my ssh keys to ssh. When I type ssh-add ~/.ssh/idname it says /Users/Dan/.ssh/idname: ...
0
votes
1answer
26 views

Give a user the permission to access files in a directory

I have mounted a volume from NAS storage to my Solaris 10 machine using NFS. I want to give read/write permission for a user to the directories and subdirectories and files. I have tried setfacl -m ...
2
votes
1answer
34 views

Changing file permissions on an HFS+ filesystem

I ran the command fdisk -l to find out what my external drive is formatted to, I found out it's uses GPT partitions and the filesystem is HFS+. When I try and create a new folder on the external ...
0
votes
2answers
39 views

need give read write access to a folder and its subfolders and directories for a particular user

Could you help me to provide read/write access to a folder, its sub-folders and all the files below for a particular user? I tried to use the getfacl command, but didn't find a solution. I'm using ...
2
votes
1answer
42 views

What to do when you removed execute permission from some system binaries or libraries?

It seems I removed executability from system binaries, resulting in loads of Permission denied. Do I have to force reboot into host's rescue mode or is there something else I can do while I'm still ...
3
votes
1answer
49 views

groupadd failure while writing changes to /etc/group

I have been following this guide on installing debian-kit on my Sony Xperia Tablet Z and the installation goes fine until I try to apt-get install andromize which fails with the error groupadd: ...
3
votes
1answer
24 views

How to make a cifs/smb mount ignore umask?

I have a cifs mount that is mounted from /etc/fstab. But I would quite like creation of files/dirs on that share to ignore my umask. Is that possible? It seems that cifs does not support the umask=000 ...
2
votes
1answer
120 views

/usr/sbin/sendmail: Permission denied

I am trying to setup the mail on my fedora 20. Every time I try to fire a test mail it tells me the permission is denied on /usr/sbin/sendmail. I checked the permissions and this is the output: ...
0
votes
0answers
10 views

Map a network share folder in Debian with read-write permission

I want to mapped a folder on samba server at Debian Squeeze startup. I found a guidance by google as following: Open file /etc/fstab and add line //server/share /mnt/dir smbfs ...
0
votes
2answers
27 views

Why can't my python script change umask?

This is my script #!/usr/bin/python import os print "hello world from python" os.system("echo 'hello world from bash'") os.system("umask 055") os.system("ls -alh > test") If I run this code ...
1
vote
1answer
30 views

Using scp to transfer files to an android device

I have a file on a remote server that I want to transfer to my android device over ssh, only using the android device in the process. Using this setup, I tried an scp from the android device ...
2
votes
1answer
80 views

Why can't mv preserve permissions when moving between Android SD cards?

After mounting both SD cards on an Android phone using the "USB mass storage" mode I keep getting these messages when moving files between them: mv: failed to preserve ownership for ‘/.../foo’: ...
4
votes
1answer
105 views

Find directories and files with permissions other than 775 / 664

I am moving a website from one server to another and Git does not store metadata such as file permissions. I need to find the directories and files that are not 775 / 664 respectively. Right now, I'm ...
2
votes
1answer
22 views

Desktop app run by admin user (but not explicitly with sudo) takes file ownership of shared file

Similar to http://stackoverflow.com/questions/15143614/file-ownership-changes-to-root-after-saving-from-a-program-in-ubuntu but I can't use the answer since I'm not running a command-line app as sudo. ...
1
vote
1answer
40 views

How can I tell why I have permissions to read a file? [closed]

Here's what I just noticed on my CentOS SSH account: stat output $ stat /dev/kvm File: `/dev/kvm' Size: 0 Blocks: 0 IO Block: 4096 character special file Device: ...
0
votes
1answer
26 views

Symbolic link permission changes [duplicate]

I would like to change the symbolic permission[lrwxrwxrwx] to 755. I've used the command to try and change the permissions and it's not working. $ chmod -R 755 symbolic link folder
1
vote
0answers
39 views

Permission denied when running logrotate with anacron

I am trying to figure out what is causing anacron to send me the following error message: /etc/cron.daily/logrotate: /var/log/mariadb/mariadb.log-20140710.gz: Permission denied error: error running ...
1
vote
1answer
44 views

sudo chown -R $USER:admin /usr/local - revert back to ROOT?

On OS X, but may also apply to *NIX. This question was asked/answered previously, and I know it's safe to chown on /usr/local for my admin user account, which I've done to install git with homebrew ...
0
votes
0answers
17 views

server migration experiments

At our premise, we are going to have to migrate some servers. I'm making some experiments for try to make all the silly stuff before put hands on real servers. I got 2 raspberry Pi, installed ...
3
votes
1answer
212 views

What permissions do I need to write to a card reader?

I have a card reader attached on /dev/sdb. What I do is giving all permissions to owner, group and the rest of the world, using: sudo chmod 777 /dev/sdb Can I just use another combination, ...
-1
votes
1answer
46 views

How do I properly allow user jenkins to write to a specific directory under user minecraft home directory?

I am using Jenkins, I want to copy a file from the Jenkins directory in to the minecraft user directory, but I am not sure how to go about this, as when I run cp build/versions/*.info ...
5
votes
2answers
137 views

Why ssh-agent group ownership is not root

Trying to understand why ssh-agent has sgid bit and found this post ssh-agent has sgid I have another question, why the group ownership of ssh-agent is nobody not root? What is the reason behind it? ...
4
votes
1answer
121 views

View List of Sudoers with No Sudo Priviledges

If I'm not a sudoer, is it possible to view the list sudoers? Does /etc/group show this information?
6
votes
2answers
109 views

Why do some applications stop working when permissions are changed in /usr/bin?

On OS X, a friend of mine changed the permissions on /usr/bin recursively using Finder, in order to grand write access to everyone. Here is how it's done: Go to /usr/bin in Finder, then mess with ...
3
votes
1answer
69 views

How to ignore -ls errors in find

I'm writing a find command to look for files or folders with broken permissions (files should be rw, directories rwx) and trying to ls -l (give or take) the results. The following find command looks ...
0
votes
1answer
32 views

Is it viable to have a file with 700 permissions?

I have been wondering about the following thing: Consider Pc A. Pc A has n users. There is a folder with one file per user. There is some sensitive information for each usere there, so you don't ...
4
votes
2answers
61 views

777'd some files. How do I repair SSH?

So I'm messing around on a test server and accidentally ran the following (which resulting in SSH breaking): # chmod -R 777 /var Because it's a test server, I'd rather not re-install right now, I ...
2
votes
2answers
36 views

How to give Windows partions' file execute permission

I have installed Linux Mint 17 and Windows 8, as dual boot. 500GB hard disk has 5 partitions. Two of them are NTFS and the other 3 are ext4 partitions. When I log into Windows, I can not see any ...
2
votes
1answer
36 views

Copy file from USB drive to a desktop loaded via a LiveCD

I have booted my computer using a LiveCD and want to copy a file from a USB drive to the LiveCD loaded desktop. I want to copy a file from the USB drive to the desktop environment in memory, which ...
-1
votes
0answers
30 views

Can't overwrite a file with WinSCP

I don't know how to fix this problem. I'm using WinSCP (on Windows) when I want to remove or edit admins in a file on a Linux system, user.ini. When I click save it gives me this error: General ...
3
votes
3answers
247 views

What are the world writable directories by default?

In a standard Linux filesystem, which of these common directories are world-writable by default? /tmp /etc /var /proc /bin /boot /.... .... Why are they world-writable? Does that pose ...
1
vote
0answers
62 views

Limit program execution to a list of arguments

I would like that my Unix users can only run a specific command insecurecommand with a controlled list of arguments stored in a file. The only solution I have found at this time is to : Create a ...
4
votes
3answers
124 views

Why does file ownership matter within an RPM or DEB package?

Context: I'm trying to convert a .deb package to .rpm using alien, I use this command: $ alien -r foo.deb but it complains thusly: > Warning: alien is not running as root! > Warning: ...
4
votes
0answers
29 views

No elevated permissions when using GUI applications on i3 wm

I'm running Lubuntu 13.10 with the i3 window manager. Tasks that need elevated permissions, like installing applications from the lubuntu software center or using the gnome-disks, complain about not ...
1
vote
0answers
72 views

Can't delete 777 file with permissions on parent directory

As my VCS I use git version 1.7.10.4 . However, when trying to perform a pull, I got the following message: error: unable to unlink old 'somedir/config.php' (Permission denied) So what I did is: ...
5
votes
1answer
123 views

Give user permission to rm without password or sudo

I'm trying to give the ubuntu user on my machine the ability to rm folders and files (mainly in the /www/ folder) without the need to invoke a password or the need to use sudo. I've been following ...
3
votes
1answer
47 views

Can't create a+r file

Using Debian I am unable to create files that by default has read permission for all users. For example: # umask 0002 # touch test # ls -l test -rw-rw----+ 1 user user 0 Jun 25 18:18 test Is there ...
1
vote
2answers
39 views

Permissions under a 700 (rwx------) directory

If a directory /foo/bar/baz has 700 (rwx------) for its permissions, thereby making it inaccessible to all but its owner (and the superuser), does it matter what the "group" and "other" permissions ...
0
votes
1answer
45 views

Git / Jenkins permission problem

OS: Ubuntu server 10.04 LTS I have a strange issue going on with permissions and can't seem to track down what is causing it. The setup is as follows: Git Repository folders (and files in them) are ...
2
votes
1answer
35 views

Why can't I chmod these files that I could earlier?

I was trying to add execute permissions to sh files in a folder. For that I mistakenly used: find . -print0 -iname '*.sh' | xargs -0 chmod -v 744 and the output was : mode of `.' changed from 0755 ...