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)

8
votes
2answers
136 views

How to set file permissions with touch command

It seems that whenever I create file with touch the permissions are set to: -rw-r--r--. Is there some way that I can configure the permissions differently with touch or does this have to be done after ...
10
votes
2answers
463 views

How do I grant different permissions for each user?

So, I've been using Linux for a few years now, and I really should know this answer, but I'm having trouble finding it. Specifically I've been using Debian based distro's....mostly Ubuntu. If I have ...
1
vote
0answers
14 views

Access files from one cpanel account to another

I have a server which has CloudLinux installed with cpanel and whm. On this server I have 2 cPanel accounts, ABC1 and ABC2. I want ABC2 to access files in ABC1? I created a link using SSH WinSCP, ...
1
vote
1answer
22 views

How do I get access permissions right for my backup?

I have a backup server in my LAN which mounts the home dir of user@laptop and creates a backup each hour using a python script. The problem that I'm having is that I get some hundred "permission ...
2
votes
0answers
22 views

Ubuntu and web server permissions

I am going to ask a question that has already been posted many times but even though I have read many guides and posts, I still have doubts. I have a server with ubuntu 14.04 on which I have a user ...
1
vote
1answer
29 views

write permission to a folder

I have the following folder: $ ls -ahl /mnt/smrtanalysis/ total 16K drwxr-xr-x 4 smrtanalysis smrtanalysis 4.0K Jul 25 01:52 . drwxr-xr-x 6 root root 4.0K Jul 25 01:46 .. lrwxrwxrwx ...
1
vote
1answer
47 views

Edited sudoers, but `sudo ls` fails

A user has been added with root access in the /etc/sudoers but, it seems that it can not run sudo commands. [root@compute-0-0 ~]# cat /etc/sudoers root ALL=(ALL) ALL hduser ALL=(ALL) ...
0
votes
1answer
35 views

Restore system file permissions

While I was setting up an Ubuntu server (EC2), I accidentally run the following: sudo chown -R www-data.www-data /* very dumb and noob move on my end. Anyway, is there an easy way to restore all ...
3
votes
2answers
24 views

Get iSerial with lsusb without sudo

Under my sudoer user (non-root), I can see my device with lsusb. However, to see the iSerial number, I need to issue lsusb -v, I do get a lot of information printed, but the message "Couldn't open ...
-3
votes
0answers
41 views

help with some permission exercises [on hold]

trying to follow some exercises in permissions, and not entirely sure if i know what to do. create user dan and user magi = useradd dan; useradd magi Create the groups teachers and students. Make ...
0
votes
0answers
12 views

FileZilla 550 Permission denied even if I do chmod 777

The filezilla throws me an error: Command: STOR server.zip Response: 550 Permission denied. Error: Critical file transfer error if I try to upload the file server.zip even If I do chmod 777 /...
0
votes
1answer
26 views

How can I retrieve the permissions of a file in a certain format? [duplicate]

I can change the permissions of a file by: chmod 600 ~/.ssh/authorized_keys How can I retrieve the permissions of a file in the same format which is 600?
1
vote
1answer
32 views

Is granting write-only permission on log files to certain users a good practice?

Will it be safe to enable logging into a write-only log file on a production server? I imagine, that this would protect the log file from unwanted eyes. Are there any drawbacks of using this technique?...
4
votes
0answers
35 views

Owner can't read /proc/$pid/io

On CentOS 7, I am trying to debug an issue where the nginx amplify agent cannot read /proc/$pid/io even though it is owned by the proper user. One of the nginx worker processes right now is pid 5693: ...
0
votes
1answer
47 views

What do are group permission missing on new directories?

Normally when I make a directory with mkdir the permissions I expect are 751 or 755. However for some reason when new files are created, even in a users home directory, they are set to 700. What ...
0
votes
1answer
50 views

How do I grant read access to all home directories of members in a group?

So I have 4 users on my redhat system. *P- primary group S- supplementary/secondary group* UserA - P: Teacher S: USA UserB - P: Teacher S: School UserX - P: Student S: School UserY - p: ...
3
votes
5answers
348 views

How to recursively remove execute permissions from files without touching folders?

I made a backup to an NTFS drive, and well, this backup really proved necessary. However, the NTFS drive messed up permissions. I'd like to restore them to normal w/o manually fixing each and every ...
0
votes
0answers
28 views

access denied for folder in NFS share possibly for new users only. Why? [closed]

On a one of our NFS filers, a user is unable to access the folders having group ownership and permissions. $ id -a uid=3234243(user1) gid=18027(sv_users) groups=18027(sv_users),18606(lts) $ls -ld /...
0
votes
0answers
24 views

Not owner error in AIX(unix) while getting pgid between processes

I confront a problem while porting my python program in AIX. The problem seems on ownership or permission between processes. Let's assume that there are two processes(process1, process2). The ...
2
votes
1answer
51 views

Damage by chown command at /

I was careless for just a second and managed to type (being logged as root) on my Ubuntu system: chown foobar /* chown foobar /*/* What is the possible extent of the damage, and how can I revert it?...
3
votes
2answers
65 views

Is `chmod -R ugo+rwx /` safer than `chmod -R 777 /`?

I read here that chmod -R 777 / is a really bad idea, because it overwrites permissions on files, and erases sticky bits and setgid and stuff. However I was thinking that chmod -R ugo+rwx / would not ...
0
votes
0answers
28 views

SUID bit does not work even though I put the binary on a non-nosuid mount [duplicate]

I am trying to test out how suid would work. I have this for my binary: #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]){ system("/bin/sh -c whoami"); ...
1
vote
0answers
24 views

Differences in permission handling of an NTFS filesystem and an EXT4 filesystem mounted in linux [closed]

What is the difference between permission handling of an NTFS mounted filesystem in linux and an EXT4 filesystem? See How to make an ext4 file writable on mounting by a user (not root) and How do I ...
3
votes
3answers
84 views

How fstab mount options work together with per file defined permissions in linux

I am trying to understand what the precedence and combination of the permission options set in fstab when mounting a disk with those that are associated with each file on disk in the case of ext4 ...
4
votes
1answer
61 views

How can I recover from a `chmod -x chmod`? [duplicate]

Assuming that you can't reach the internet nor reboot the machine, how can I recover from chmod -x chmod ?
0
votes
0answers
33 views

Why i cannot access this shared directory? [closed]

1) I have created two users mukesh and mukesh2 2) changed the default user private group name from mukesh to shared_dir for directory shared_dir [mukesh@centos Desktop]$ pwd /home/mukesh/Desktop [...
1
vote
1answer
19 views

server file owner and group changed when editing file locally [duplicate]

If i edit the file from a remote server via text editor (geany, sublime text..etc) locally, the file user and group will changed to the logged user. Let say if I accessing the remote file with root ...
0
votes
0answers
23 views

Ignore all other media/drives when live-booting from USB

I am live-booting a custom debian (built using live-build) and I'm wondering how I might prevent the user (even root if it is possible) from reading or writing to the internal hard drive and other ...
0
votes
0answers
52 views

Limit access to a file by program in Unix/Linux

Is it possible to limit access to a file by a program. The problem I have is that users run a program under their UID and it accesses a file. I want that file not to be accessible to them through ...
-1
votes
2answers
35 views

Privilegies of command inside shell script

I need to run simple script to check host status (ping), I have following script: #!/bin/bash echo "Host checker:" if [ "`ping -c 1 172.17.10.1`" ] then echo "HOST UP" else echo "HOST DOWN" fi ...
0
votes
1answer
21 views

Need help/advice on how to set specific chown and chmod permissions against a SMB/CIFS mount

I currently have a SMB/CIFS network share which I have mounted under /var/inbound to receive files via SFTP. Here is what I have in my /etc/fstab: //somename.file.core.windows.net/inbound /var/...
0
votes
1answer
64 views

chown -R www-data:www-data sets ownership to root

Background I have a BananaPi with Bananian, Apache2 and OwnCloud. Plugged into the Banana Pi is a NTFS-formatted HDD that gets mounted via ntfs-3g. I created five users on the system and there is a ....
1
vote
1answer
39 views

Grant access to a different user's home directory

I've created a user that's locked down to it's home directory and does nothing else but allow a client to upload an ftp file to us - hands slightly tied at the moment regarding that, so I've had to do ...
1
vote
2answers
42 views

Which user does vi run commands as?

This maybe a weird question but please listen carefully Let's say I have a file as -rwxr-w--- user3 user2 4095 somefile Right now I'm in a user2's shell(? is this right to say) and if I execute ...
1
vote
1answer
24 views

Give user2 read only permission to user1's subdirectory [duplicate]

Server: Debian I am user1, with directory /home/user1/website/logs I want to give a new user, called user2, read access to files located in /home/user1/website/logs without giving user2 access to ...
1
vote
2answers
92 views

Escalate permissions through a background shell script

I would like to write to a Device File (of a printer) located at /dev/usb/lp0. The file is owned by lp user and group. This file is created whenever I connect my printer device to the system. I ...
5
votes
1answer
173 views

Equivalent of subinacl.exe on linux / unix?

When modifying permissions on Windows I backup the ACLs to a file first using a commands like: subinacl /noverbose /output=C:\temp\foldername_redir_permissions_backup_star_star.txt /subdirectories "...
1
vote
1answer
22 views

Granting one user access to multiple users' folders but limiting those users to their own home directory

I have looked and looked but cannot find a specific answer to this question: I have 3 users: A 'master' and 2 subordinates. I want the master to be able to access the subordinates' folders, but I ...
0
votes
0answers
24 views

NFS exports all_squash,anonuid,anongid mapping all client users to owner on server (working) still needs world readable permissions on the server?

My /etc/exports on the NFS server: /home/username/Documents/some/folders/deep 192.168.1.10(rw,sync,all_squash,anonuid=1000,anongid=1000) This seems to be working as intended for the most part. ...
1
vote
1answer
49 views

Understanding unix user [closed]

Basically I want to know if my understanding of unix users is correct. 1) A unix user is basically a different set of permissions on some set of files and directories in a filesystem. For example a ...
3
votes
2answers
151 views

How to change the Symlink permission?

I have a issue: I need to change the permission of the symlink from 777 to 755 and I do not have any idea how should I do it. I have tried using the chmod command but it's not working. I want ...
1
vote
1answer
25 views

Application folder owner is root

I'm going full Linux for in my laptop (Fedora 24 at the moment). I'd like to clear some confusion about applications ownership and what entail. I installed Chrome from the rpm on the official site. ...
2
votes
2answers
41 views

Properly set execute bit based on file type?

I'm trying to cleanup permissions on an Apache web server. I'm finding lots of files with the execute bit that don't customarily have it (or should not have it): $ sudo find /var/www/html -executable ...
0
votes
0answers
14 views

Mounted NAS permission issues when www directory on it

I am messing around with my Pi (Raspbian) and I have set up an apache server on it with php. I have set the apache server to use a folder on the mounted NAS drive (works and shows website as expected) ...
0
votes
1answer
50 views

set permission of file so that it is not deletable or writeable

This is what I think is happening. In Unix the ability to delete a file is governed by the writeability of the directory that it is in. This ultimatly affects the writeability of the file. As a file ...
59
votes
1answer
3k views

What did the sticky bit originally do when applied to files?

In various places one can see the "sticky bit" accused of nowadays being a complete misnomer, as its functionality nowadays is to affect the write permissions on directories and act as a restricted ...
0
votes
0answers
32 views

new folder not inheriting permission from parent folder (linux Ubuntu 16.04)

So I have this folder here: => ll total 512 drwsrwsr-x 2 root users 4 Jul 1 01:27 storage/ If I create a new folder inside storage, the new folder has the permissions "drwxrwsr-x". Please note ...
0
votes
0answers
32 views

How to fix system after wrong permissions? [duplicate]

I changed permissions on / by mistake using chmod -R 755 /* instead of ./* after doing sudo -s. I stopped the process in the middle of it after realizing what was going on. But it was too late. Now ...
7
votes
3answers
627 views

What is the difference between -g and -G options in useradd

Forgive me I am not strong in the Linux. As the title said . Could anyone please tell is there any difference between them? After I look through the help. I didn't found much difference between them....
0
votes
2answers
48 views

How to limit users permissions to only use mysql

Is it possible to create users (non-sudoers) that can only use the command "mysql" ? or set of commands ? Context: I have a server hosting a mysql database. I want to give some users the rights to ...