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)

0
votes
1answer
122 views

user exists when trying to add user to systemd-journal group.

I have been wanting to read systemd-journal by running/using journalctl -b . Now if I run it as a user I get the following :- $ journalctl -b Hint: You are currently not seeing messages from other ...
0
votes
1answer
68 views

Give access to only one directory that's not user's home

In my VPS account, I have a folder /home/xyz/public_html. This belongs to a customer who now wants their in-house developer to look into the code. How do I give SFTP access to only this folder? I ...
0
votes
0answers
92 views

Permissions set to 755 but I cannot access folder

I want to access some files in a folder that I created in a server. I have changed the file permissions recursively to 755, which basically should allow everyone to read and execute files, but this is ...
2
votes
0answers
130 views

Unable to run chmod, chown, and even ls on a folder

I searched the net and tried to apply answers to similar problems but none worked so far. There is a folder named ocrpaylasim under /home/bnet path. This file belonged to bnet user before and was ...
3
votes
1answer
48 views

How to ensure proper file permissions when running installer bash as sudo?

I am making a installer bash, playing with it a little too. But I just came across a serious problem: As I run the bash with sudo ./install.sh, all the files it copies are owned by root and therefore ...
2
votes
2answers
3k views

Why do I get permission denied when using mv althrough directory rights are correct?

I get permission denied when trying to move folder Music via mv although directory owner is set to my user and user permissions are set to 7. What's going on? (I know that I could use sudo but I want ...
1
vote
1answer
45 views

SFTP access to different parts of the apache webroot for different users

I have a website running on apache with the web root folder at /var/www. I have different people managing different aspects of the website. Designers accesses /var/www/images and /var/www/media ...
0
votes
0answers
91 views

Give non root user permission to mount NTFS partition

When an external storage device like a flash drive is plugged in, it gets automatically mounted without any root authentication by nautilus. But why does mounting NTFS partitions within the same ...
2
votes
1answer
237 views

Why am I unable to attach `strace` to a kworker process?

As root, I try to attach strace to a running kworker process, without success. root@rasal# whoami root root@rasal:/# cat /proc/sys/kernel/yama/ptrace_scope 0 ...
0
votes
0answers
12 views

Motion Network Share Write Permissions

I'm running into an issue where a network share on my debian machine provides rwx to the directory. However my "Motion" program is writing files to it constantly, but for some reason needs to re-write ...
1
vote
1answer
36 views

Make superuser act like some other user in certain directory tree

I have the following problem: My home directory lies on the network and is mounted locally on home/<my username>. I can access it with my normal user account <my username>, but as root, I ...
2
votes
2answers
111 views

Hard-link creation - Permissions?

Which permissions affect hard-link creation? Does file ownership itself matters? Suppose user alice wants to create a hard-link to the file target.txt in a directory target-dir. Which permissions ...
1
vote
1answer
49 views

NTFS Partition Not Mounting Properly, Cannot Execute Despite Ownership

I'm trying to execute a script located on an NTFS partition that I own. I own the mount point, which is ~/Migration. ls -l in the directory where the mount point is contained shows me drwxrwxrwx ...
0
votes
1answer
232 views

Creating a new FTP user and giving him only the right to 1 folder [duplicate]

I have a Linux Debian machine that I own (root access). I would like to create a new user called "testuser" and give him the right to view, edit and delete files from only one specific folder ...
1
vote
0answers
158 views

Unable to log into Cockpit server - could not set limit for 'nofile'

I have Cockpit installed on a Fedora 22 VPS that I use for educational purposes. I tried logging into Cockpit from my browser, but I was given a "Permission denied" message, despite using the correct ...
7
votes
2answers
639 views

how to prevent a user from changing his home directory permissions?

If user smith's home directory has the following permissions: $ ls -l /home/staff drwxr-x--- 51 smith staff 4096 Sep 18 09:08 smith/ is it possible, somehow, to prevent him to change his ...
0
votes
0answers
62 views

IzPack Linux Keep same permissions

I'm using IzPack to pack my application contain thousand of files that should be executable. IzPack remove the original permissions and give the unpacked files rw-rw-r-- So, there is any solution to ...
0
votes
1answer
43 views

Why can't I create directories under /root as a member of root? [duplicate]

I've done the following: sudo usermod -a -G root userA sudo su - root cd / chmod 775 root ls -aln -- drwxrwxr-x. 6 0 0 4096 Sep 13 22:04 root I can cd /root from my userA, but I can't make ...
1
vote
1answer
51 views

Thoughts on security in linux [closed]

So ransomware is around again - at least in Denmark. This is a major issue for MS-Windows users, but does almost never affect Linux or Mac. The reason is an issue of debate. But since the consumer ...
2
votes
1answer
105 views

EACCESS err while installing thin

I am trying to install thin in linux mint 17. I have installed ruby via rvm . I have already install the thin gem. When I ran thin install I got this error Installing thin service at ...
0
votes
0answers
117 views

permission needed for Python to access USB drive?

I got this Python script that reads media files from USB stick. It used to run fine, today it keeps giving me OS Error: [Errno 13] Permission denied: media/myName/usbName when the script runs the ...
1
vote
2answers
304 views

How to copy directory structure from one server to another without root user?

I would like to know best way to copy directory structure from one server(Unix) to another (Linux): without root user servers are not connected (e.g. can't use SSH directly between them) I need to ...
1
vote
1answer
2k views

RSync - Permission denied (13) while executing rsync as a root

I am trying to set up hourly rsync beetwen my local machine and remote server. I have already created a ssh certificate to enable login less connection to remote machine. Now however when I execute ...
2
votes
2answers
84 views

Where can I/should I place files outside my home directory?

I'm using a Linux system on which I don't have root. My home directory is remote-mounted and backed up (and there's a quota on that filesystem). Now, I would like to work on some files on this machine ...
1
vote
1answer
272 views

Recovering from a chown -R / [duplicate]

I've made today the greatest error on my server using root user: chown -R 33:33 / instead of chown -R 33:33 . within some webroot folder. Well, this brought ssh down. I made it this far to get it ...
-2
votes
3answers
269 views

Understanding permissions properly for cp [duplicate]

I am trying to understand the permission usage for the cp command in unix. What are the permissions required for copying a file into a directory What are the permissions required for copying out of ...
1
vote
2answers
63 views

Permissions to remove all files in subdirectory

I have a folder myfolder with lots of files and directories as follows: -rwxrwx--x user1 user1 . -rwxrwx--x root root .. -rw-rw---- user1 user1 file1 -rw-rw---- user1 user1 file2 ...
0
votes
1answer
72 views

Need help with mount.cifs syntax for read/write mount for non-root user

When I upgraded to Ubuntu 14.04 it also upgraded cifs. In Ubuntu 12.x a network mount script I had would nicely mount a Windows network share as read/write. My attempts at updating it to work with ...
0
votes
1answer
560 views

Mount successful, Directory accessible, but cannot do Operations (cp, mkdir, etc.)

I have mounted a shared network drive. See below output of df -h command. Filesystem Size Used Avail Use% Mounted on /dev/sda1 550G 362G 161G 70% / tmpfs ...
0
votes
1answer
86 views

If umask is same when why unzip <filename> on two different hosts getting permissions different

umask on two hosts is same ( 0027 ) Still when i unzip the same file ( MD5 match), the permissions of same unzipped file differ in directory and file permission in two hosts. How can it be possible ...
4
votes
1answer
73 views

Why are both write and execute permissions on a directory necessary to be able to delete files? [duplicate]

It's straightforward to realise that the permissions of a file are not relevant to the ability to delete that file. The ability to modify the directory listing is controlled by the directory's ...
1
vote
0answers
131 views

Unable to delete files even with root, lsattr is also not responding

I have two somehow corrupt files in my second hard disk of my laptop, which has dual boot Ubuntu 15.04 and Windows 7. I keep it mounted as a ntfs formatted partition in media. I share this drive ...
2
votes
1answer
144 views

How to backup readable but not writable files using rsync?

I am using rsync to backup some folders in my home directory to a remote server using the following commands: cd rsync -Favz --inplace --delete --delete-excluded folder1 folder2 folder3 ...
0
votes
1answer
29 views

Permission check on profile file in home directory: should it be done?

Say I'm implementing a programming language which has an interactive mode, and that interactive mode reads some ~/.foo_rc file in the user's home directory. The file contains code in that language ...
3
votes
1answer
157 views

Can't give myself NOPASSWD privelege for chmod/chown [duplicate]

I'm trying to set my local computer (which has Linux Mint 13 Maya) so that I can chmod & chown any file with my regular max user account. Following this page, ...
0
votes
2answers
987 views

`su` command: Permission denied

When I type into bash the following command su -s /bin/bash as root, then no error occurs. When I type su -s /bin/bash -m [MyUserName], then I get the error: Permission denied. As far as I could ...
1
vote
1answer
110 views

Read file permission denied despite sufficient permissions [duplicate]

I'm attempting to cat a file with 770 permissions as a user who is part of the group (but not the owner of the file). This should provide sufficient permissions to my understanding, yet I encounter a ...
0
votes
1answer
109 views

rsync command not preserving permissions

rsync is not preserving permissions/ownesrship after file transfer. Here is the scenario Source host(192.168.2.14 from where files are copied): Source Path # ls -l "/shareddata/tesz/" total 4 ...
1
vote
1answer
61 views

How to achieve a bi-directional sync of userN files by user1 while keeping mtimes?

user1 wants to do a bi-directional sync between 2 machines. user1 is a member of group2 and has a non-privileged ssh tunnel. There are lots of files and dirs such as: rwxrwx--- userN group2 ...
0
votes
0answers
111 views

Transferring files via FTP to server - Can transfer most but others permission denied?

I have a Linux server that hosts my website and I'm having quite a bit of trouble with a problem. Basically been changing my website around, and for the main part I can transfer all files fine, via ...
2
votes
0answers
213 views

Unable to delete Root CA (UNIX: operation not permitted)

I am trying to delete a root certificate authority from my Mac OS machine. When I try this from the 'Keychainaccess' program it asks for my password and then shows 'ecKeychainItemDelete: ...
0
votes
1answer
105 views

Calling php function from /var/www/folder (as www-user), which is located in a file in /var (or any folder) (with root permissions?)

I wrote a script which "walks" through /var/www/xyz and scans folders and more. The folders are all 'user-bound', so the permissions for a single folder there are set to the specific user. Running ...
1
vote
3answers
79 views

How do you set the 'T' bit?

My TeX Live installation has a file called .texlive2015 and was originally set to drwx------T. I changed it, and I want to change it back, but I can't get the 'T' back. How do I get it back?
2
votes
2answers
71 views

Is there any standard on the permissions for system directories?

The /root directory on CentOS 6 has permissions 0550 but on Debian 7 it is 0700. The Filesystem Hierarchy Standard (FHS) tells about directory organization but remains silent about permissions. Do ...
0
votes
1answer
53 views

What software is responsible to check permission of files to give access or not to users?

I want to verify that is it the responsibility of file system?
1
vote
1answer
49 views

How are permissions in linux implemented?

It is in my knowledge that Linux implements a DAC-based model for file access control, however I recently came across the fact that ACL's have to manually be enabled in Linux. My question is: How ...
0
votes
0answers
38 views

xTerm and wvdial issue [UDEV]

After mounting USB modem opens xterm which connects me to the internet after some time it shuts down. -- When I'm starting sudo wvdial on normal gnome-terminal - All works without any problems. But ...
1
vote
1answer
68 views

umask vs -m, --mode command options

Is there any technical merit/necessity to numerous *nix commands (mkdir, mkfifo, mknod) having a -m (--mode) option? I ask this because near as I can tell, umask (both the shell command and the ...
0
votes
0answers
92 views

Transmission-daemon error permission denied

I have set up transmission-daemon on a bananapro to be a torrent server. I have created a directory for it in the root home folder and given chmod 777 permissions to this directory so that anyone can ...
1
vote
2answers
87 views

Add user on Jessie that can log on to FTP but has no shell

I have set up a vsftpd server and I used chroot to keep users locked inside their home directories, which works just fine. I have since tried to edit the passwd file to set the default shell to ...