Questions tagged [permissions]

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.

Filter by
Sorted by
Tagged with
1
vote
0answers
15 views

Specify UID/GID for NFS mount (CentOS 7)

I have two servers svrA and svrB (both CentOS 7), where svrA is a turn-key system so I cannot change anything on it, and svrB is the one I am working on. svrA contains log files I need to transfer to ...
0
votes
0answers
33 views

chmod equal sign isn't working appropriately or I misunderstand it? [on hold]

Does the equal sign in chmod command revokes unmentioned permissions? for example, the command chmod u=r file1.txt does it yield a permission -r-------- ? or it keeps the u and g permissions as they ...
1
vote
1answer
48 views

Folders permissions is ressetting every time I boot my laptop

I am using Arch Linux, and every time I boot my laptop as a user, the hard disk folders permissions is set to root only, so I can't open them as a user, I used the following command to change the ...
0
votes
1answer
27 views

Rootfs permissions design

I wonder how design permissions in root file system should look for embedded device, with busybox onboard (buildroot environment). My initial concept is to remove all permissions, except x, of group (...
0
votes
0answers
13 views

adding Group and permissions for FTP

This is a follow up to my previous rather dumb question about adding a FTP user for one of my clients... original question here. I'm running a Linux2 instance on AWS. I have a number of site running ...
0
votes
1answer
53 views

rm -rf root permissions denied

I want to delete the folder under root writes an error /var/www ⌚ 16:35:54 $ ll drwxrwxrwx. 2 ftp_user ftp_user 6 апр 24 16:46 cgi-bin drwxrwxr-x 5 nginx nginx 4,0K июл 10 12:42 site.com ...
1
vote
0answers
55 views

mkdir:cannot create directory : operation not permitted

I have a strange problem. I cannot create a file or directory in a directory. Here is the detail description: login shell with root for directory /home/a, I can create file, directory normally. But ...
-1
votes
1answer
24 views

How to change permissions of all the files in my directory?

I used a script to install Hadoop /opt/hadoop-3.2.0$ ll total 216 drwxr-xr-x 10 yarn hadoop 4096 јул 9 08:05 ./ drwxr-xr-x 9 root root 4096 јул 9 07:42 ../ drwxr-xr-x 2 yarn hadoop 4096 ...
0
votes
1answer
34 views

After the edit of ~/.bashrc file: ll command not found

I was installing Hadoop on my Ubuntu. This is my PATH now echo $PATH /usr/lib/jvm/java-1.11.0-openjdk-amd64/bin:/home/miki/.local/bin:/opt/hadoop-3.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/...
3
votes
1answer
81 views

Linux File / Folder permissions

I have multiple folders that need to be accessed by multiple users. Specifically, Medusa(Which I use to track which episodes of TV Shows I do not have backed up yet), Plex(Which I use to stream my ...
1
vote
1answer
17 views

Permission Denied with running custom script that has correct permissions

I have downloaded script called 'linkhandler' in my /bin/ folder, whose content is below. I have given the file permissions, this is the output from ls -lah: -rwxrwxrwx 1 root 861 Jul 8 13:12 ...
1
vote
1answer
24 views

stdout is accessible to user but not from su - user

I'm testing redirecting programs std_out to /dev/stdout in docker alpine. I can't figure out why I can echo from user to stdout, but not from su command. docker exec -it 779ddea6ec33 bash # root ...
2
votes
2answers
32 views

Can't create directory in directory owned by group

I have a group called homeperms on an Ubuntu system, with a few users: $ cat /etc/group | grep "homeperms" homeperms:x:1004:jorik,tim.wijma,vanveenjorik,jorik_c And I've done $ sudo chgrp -R ...
0
votes
2answers
44 views

Unable to save file in /etc/ssh/ because incorrect permissions (Linux Mint/Debian)

When I attempt to edit '/etc/ssh/sshd_config', and save the file, I get an error saying: 'Could not save the file /etc/ssh/sshd_config. You do not have the permissions necessary to save the file.. ...
1
vote
0answers
38 views

Secure use of a passphrase in environment variable

I'm trying to understand environment variables and the security implications from the command line and from a script or cron job. Duplicity expects (and requires for automation) that there be a ...
0
votes
0answers
41 views

mkdir relative/absolute path permissions

I'm currently in a directory foo (pwd is /some/lepath/foo) I own foo, but not /some/lepath. I got here by cd'ing to foo, then sudo -uing to the owner of foo, hence I am now in a directory I could not ...
1
vote
0answers
29 views

Why “udisksctl” and “mount -o loop” giving different root permissions after mounting?

I am trying to mount an iso using udisksctl and it appears that the bash scripts inside these are having only read permission [root@hostname ~]# udisksctl loop-setup -r -f /root/test.iso Mapped file /...
0
votes
0answers
18 views

Set group as owner of cifs mount in fstab

Is it possible to mount a cifs share in fstab with setting the group as owner? So anyone in the group can chmod without sudo? These are the options I've tried: rw,mand,vers=3.0,gid=,file_mode=0664,...
1
vote
0answers
29 views

Setting ownership and permissions to an ntfs usb drive

I have a seagate backup plus HD. 2 TB, usb. When I plug in the drive Ubuntu auto mounts it to /media/me/myhd. Here is the myhd directory after being mounted. drwxrwxrwx 1 root root 524288 Dec 31 ...
-3
votes
1answer
47 views

Terminal can’t use 'mv', because 'permission denied' (Linux Mint/Debian)

I want to move a file using mv; this is the command: mv /etc/samba/smb.conf /etc/samba/smb.conf.bak But it returns: mv: cannot move "/etc/samba/smb.conf" to "/etc/samba/smb.conf.bak": permission ...
0
votes
1answer
21 views

adding FTP user without changing owner of directory?

Sorry, but this is probably a terribly stupid question. I'm running a Linux2 instance on AWS. I have a number of sites running there, including a couple of wordpress sites. One of the sites wants an ...
-1
votes
0answers
28 views

GNU find command results don't match pattern [duplicate]

I'm trying to determine if the capstone.h file is in the / directory or any of its subdirectories. I enter find / -name 'capstone.h' and I get dozens of results like find: '/var/cache/libvirt': ...
0
votes
1answer
20 views

umask doesn't work with nohup

It seems that umask and nohup don't work correctly together. I did this: $ umask 022 $ nohup java -jar blah.jar & [1] 12345 nohup: ignoring input and appending output to `nohup.out' $ ls -l ...
6
votes
1answer
313 views

Why can't you move another user's directory when you can move their file?

Following on from another user's question I've bumped into a quirk of Linux filesystem permissions that I can't easily rationalize: sudo mkdir ~/foo ~/foo/bar sudo touch ~/baz mkdir ~/my_dir chown ...
0
votes
2answers
67 views

Can a user be unable to delete files within a directory the user owns?

Assuming root privileges are unavailable to user A and user B. Suppose: User A makes directory X with 777 permissions User B then makes a directory X/Y with 755 permissions. User B then makes a ...
0
votes
1answer
37 views

Compress allowing read & write access on any platform

I am using Linux Mint 19.1 Cinnamon and have a disc partition for files formatted in Ext 4. I want to compress some of the files and folders to a single file, to share with 2 other people who share my ...
0
votes
1answer
25 views

Cannot change file/folder permission on Linux running on VMware

I am using Linux on a VMware on Windows and added a second HDD device today. However, each file or any dictionary that is created on the new device gets executable permissions which are not removable (...
2
votes
0answers
101 views

User can cd but can't ls directory [duplicate]

This directory had ACL and UNIX permissions set on it. I've reset the directory's UNIX and ACL to the minimum, but the user cannot list the contents. Other users with similar group memberships CAN ...
0
votes
0answers
17 views

ACL vs Groups, Which one is better? [duplicate]

i recently heard about ACL in Linux, and read that we can allow permissions to specific users using ACL. But my question is we can do the same using the groups then why do we use ACL or is it me who ...
1
vote
1answer
20 views

ansible template module permission error

Snippet of my yaml code: - name: 11|Copy sw-installer.jinja2 response file for unattended installation template: src: "{{ CNTRL_SERVER_RSP_FILE_DIR_LOCATION_FOR_INSTALL }}/sw-installer....
0
votes
1answer
46 views

How do I set ACLs for a directory so that a particular user has rwx access for the directory and all children?

Note: to clarify the question, I am assuming an empty directory to start; I realize if it was non-empty I could use the -R option to setfacl. Here's what I tried (wanting to give access of /tmp/...
0
votes
1answer
35 views

Do Linux directory permissions overrule file permissions? [duplicate]

drwxrwxrwx 2 user1 user1 4096 Jun 21 11:25 . drwxr-xr-x 16 user1 user1 4096 Jun 21 11:25 .. -rw-r--r-- 1 user1 user1 15 Jun 21 11:25 access.txt The file access.txt is owned by user user1 but the ...
0
votes
0answers
37 views

Raspbian NFS parent folder permissions

I have a Raspberry Pi booting over network (NFS share). This works fine. But depending on the NFS version I use (tried 3 and 2) there is a weird behavior concerning permissions of parent folder. Here ...
2
votes
2answers
86 views

How does Linux check permission for file descriptor?

When a process successfully get an fd using open(flags=O_RDWR), it will be able to read/write to that file as long as the fd isn't closed (Regular file on local filesystem), even if some other process ...
1
vote
1answer
56 views

Chromium will not launch

I can launch chromium by right clicking and selecting “open a new window with a temporary profile”. However I can not get it to work with my normal user profile. I get the following errors: kurt@pop-...
1
vote
1answer
20 views

SAMBA copy file without properties: the file has properties that can't be copied to new location

From Windows 10 (enterprise) copying a file that has only been downloaded from internet will I get a windows popup saying: Are you sure you want to copy this file without it's properties? The ...
0
votes
2answers
21 views

User for group able to delete file even though the user has only read access to the file through group

I have a directory with the below permissions: drwxrwsr-x 3 john ro 20K Jun 20 14:48 logs I logged in as john and touched a new file inside logs: -rw-r--r-- 1 john ro 0 Jun 20 14:48 d From my ...
0
votes
0answers
10 views

Grant permission to ftp user in other directories

I need a user that I created in my ftp server to access other directories. Example, the tech user was created in the following way: useradd -s /sbin/nologin -c "FTP user for mail accounts" -G mailg ...
0
votes
1answer
51 views

Logrotate “permission denied” error

I am trying to get logrotate to work and keep getting the follow error message. /etc/cron.daily/logrotate: error: error accessing /ftp/logs: Permission denied error: error opening /ftp/logs/...
0
votes
0answers
30 views

Can't copy file with read permissions

I have a file which I can't seem to copy even though I have permissions as user1 > sudo -u user1 cp item1 some/nested/dir cp: cannot create regular file 'some/nested/dir/item1': Permission denied ...
0
votes
1answer
24 views

Why can't my webserver write (PERMISSIONS ISSUE)

I have this filesystem $ ls -la /var/www/myapp/api/project/files/ total 12 drwxrwxr-x 3 me me 4096 Jun 17 14:28 . drwxrwxr-x 10 me me 4096 Jun 17 14:27 .. drwxrwxr-x 2 me me 4096 Jun 17 14:28 cache ...
0
votes
2answers
42 views

Restrict a user to home directory without modifying /home/%u permissions

I'm still a novice with Linux. I'm building an Ubuntu mail/web server that multiple users will use. I would like to restrict users to their home directory so they can login, change their password, or ...
1
vote
0answers
16 views

to set the default permissions on files under a specific folder

Scenario: We're receiving the below files from upstream which is a mainframe system. -rw-rw---- 1 s36748 xyz 293 Jun 6 19:20 CSJ_H_20190606.csv -rw-rw---- 1 s36748 xyz 3284 Jun 6 19:20 ...
1
vote
2answers
15 views

Removing mount default execute permission of text files

I want to mount all text files without execute permission to eliminate the (Run in Terminal - Display - Run) message, which appears every time I open a text file in Linux Mint. I have the following ...
2
votes
1answer
82 views

Why choose a umask of 002 over 022?

I was cleaning up groups and permissions on my home system today, and re-familiarized myself with umasks. It seems that the default on my system (Ubuntu 18.10) is 002, but that for root it's 0022. ...
0
votes
1answer
26 views

Proper permissions for Laravel project in /var/www/html

I want to create a Laravel project in /var/www/html using composer. Since composer won't allow you to run as root, I can make a directory and give it all the permissions 777 but I don't think that's a ...
0
votes
0answers
15 views

How to copy ownership and permissions using rsync but not the files

I am using AWS CodeDeploy to copy files from git to the server. It can't overwrite the files, so I have to move the files to another temp location and then it moves the files from the repo to the ...
0
votes
1answer
55 views

How to prevent someone with remote access from changing my file permissions?

If someone gets unwanted remote access to my computer/OS, what's to prevent them from opening a terminal and changing the permissions on my files? I have a FW that is very good, but, let's assume ...
1
vote
2answers
27 views

Discard “access denied” stderr natively in find

Is there an option in find that allows me to suppress the error messages that I get from it trying to access directories for which I don't have access? I know I can just discard stderr, but it seems ...
0
votes
0answers
26 views

Chromeos Linux Beta

I am attempting to install Krita on my chromebook. I have 'turned on' linux beta and chromeos prompts me that 'Shared folders are available in Linux at /mnt/chromeos...' Issue debian@penguin:/mnt/...