Tagged Questions

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
vote
2answers
156 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 ...
-3
votes
2answers
49 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
278 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
129 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
1k 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
51 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
86 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
870 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
52 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
134 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
147 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
81 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
280 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
243 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
382 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
84 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 ...
1
vote
3answers
198 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
253 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
159 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
448 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
34 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
104 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
76 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
203 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
313 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
25 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 ...
4
votes
1answer
253 views

Give a specific user permissions to a device without giving access to other users

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
824 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
199 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
880 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
234 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
81 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
42 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
108 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
182 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
61 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 ...
3
votes
3answers
1k 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
67 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
332 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
85 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 ...
5
votes
1answer
502 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
52 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
79 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
128 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
153 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 ...
4
votes
4answers
302 views

Issue on created folder permissions: temporary flag

I have a strange issue with directory permissions. From within a C++ app, I create a folder with: mkdir( "foldername", 777 ); But I got into an issue when attempting to create a file in that ...
1
vote
1answer
1k views

Give read-only access to specific folders?

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users ...
2
votes
1answer
241 views

How can I create files in my home directory without root?

I created a user, then using root I created a folder for him. The folder has the same name as the user. When I am logged in as the user, I cannot create files or edit existing ones without using ...
0
votes
0answers
16 views

Directory permissions for read/write children [duplicate]

I'm configuring some folders on my machine so that only the jacko user can read/write to the directories. While I'm not so prone to get confused on file permissions, I'm having a mental block as to ...
2
votes
0answers
63 views

Easiest way to sandbox an user

I'd like to sandbox a user so that they can only read files under /media/shared/somefolder. What's the easiest way to accomplish this? Users/groups? ACL? AppArmor? Some context: Plex Media Server is ...