Questions tagged [chown]

All about changing ownership of files.

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

setfacls and groups showing under Windows Advanced permissions

I'd love to find out what I am doing wrong here. I have a samba member server connected to a Windows AD environment sharing out a test folder. The end goal is to manage all permissions from windows as ...
0
votes
1answer
23 views

is there a preference when using chgrp or chown for named or numeric args

When using chgrp or chown I see zero used quite frequently as the named group or user, instead of root. Is there a preference for either? And in what use case is the numeric arg preferable?
0
votes
1answer
21 views

Setting permissions on files and folder - is folder perms inheritance always implicit?

Objective: Creating a folder on the root, chown to group and add users to group - but users get too wide permissions! Consider the following: # as root # we need a user group groupadd team1 # we ...
0
votes
0answers
30 views

Being owned by chown [duplicate]

The terminal excerpt is pretty much self-explanatory. I'm logged in as root (for illustration purposes only!), I want to change ownership of a file on a mounted NTFS partition, and it doesn't work. ...
-1
votes
1answer
67 views

Can an admin undo the limitations of a chmod 700?

Please help me understand how Linux works in this respect. I set up a samba fileshare on a raspberry pi and created a user account as well as a directory for a new user. I then used chown and chmod ...
0
votes
1answer
17 views

How is it possible to set a directory permission, so the group can both read and write files in it? (Regardless who created a file)

I created a directory, which is owned by the www-data group. I would like to make the files in it writeable by the members of the group, no matter who created the file. My username is pi. I tried it ...
0
votes
1answer
35 views

Why do I have both root and mongodb permisssions?

These are permissions total 8 7351455 drwxr-xr-x 2 mongodb mongodb 4096 авг 21 10:36 . 7340101 drwxr-xr-x 69 root root 4096 сеп 4 11:40 .. for my /var/lib/mongodb I am having problem with ...
2
votes
0answers
26 views

setgid being ignored by application

I run a Weblogic installation on a Oracle Linux Server 7.8. An application in weblogic will write some files to a local directory as output. The application uses the Oracle Weblogic FileAdapter for it....
0
votes
2answers
32 views

Trying to copy using Sudo user

I have a "SuperUser" which has write permissions to /opt/example folder. I have a regular user named "user" which has read permissions to /opt and "user" has a directory /...
0
votes
2answers
15 views

Changing ownership of a directory

I am trying to change the ownership of a directory to a certain group. I execute getent group and I see that the group I'm interested is in there - sudo:x:27. Now I am executing chown in the following ...
1
vote
0answers
92 views

Cannot change ownership in SSHFS/FUSE

I encounter permission denied when trying to change the owner using chown of a folder on mounted SSHFS: # /etc/fstab sshfs#ubuntu@my.remote.tld:/mnt/data /data fuse user,_netdev,nonempty,...
0
votes
1answer
93 views

Unable to write to mounted dir (after chown)

I've mounted a samba share to /mnt/nas with an fstab entry. I can read everything, but sudo is required to write to it (permission denied on touch test.txt but not sudo touch.txt). I tried: chown -R ...
0
votes
1answer
179 views

Chmod is not working on ntfs-3g partition

my chmod doesn't work properly. I just reinstalled my manjaro distro (formated only the root, non the /home). This folder resides on a ntfs partition (I already have ntfs-3g installed), I only need to ...
0
votes
1answer
44 views

How to change ownership for the directory on the mounted disk?

The disk partition /dev/sda7 was mounted on /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893,i want to change ownership for the directory /media/debian/8eda3aeb-e21b-455f-bb7a-f46005fb4893/mydoc, ...
0
votes
0answers
60 views

Chown & Chmod commands returning Operation not permitted on Hard Disk [duplicate]

I have a raspberry pi 3b+ and am unable to change/give permissions to an external hard disk I've connected to it. A similar question is: chown command returning Operation not permitted Also I've ...
0
votes
5answers
76 views

How to dynamically change owner of directory using awk output?

What I want to do : Takes user & their home directory list from /etc/passwd use the username and home address as parameters and change ownership of those directory to that user. Current outputs: ...
0
votes
2answers
67 views

Find specific folders and then change their ownership

I'm running into security issues with multiple Wordpress websites, and I need to recursively change the ownership (and permissions) for folder "wp-content" (and whatever is inside them). I ...
0
votes
1answer
30 views

Single user box, do user groups matter?

I have a single user box that I have setup as a home server. I'm the only one that ever logs into it, and will be the only one to ever log into it. I tend to chmod 755 for most files/directories and ...
0
votes
1answer
31 views

Way to do a recursive chown avoiding any SELinux violation

in script a.sh: chown -R root:group parent-folder/ chown -R root:group parent-folder/* The script runs as root user. When chown gets executed it show below SELinux violations: chown : type=...
0
votes
1answer
23 views

Group permission denied

Good time of day, my dear friends. I've got a user "http" with group "http", a dir "drupal-8.8.5" inside /home/yasuostormrage with 777 permissions for yasuostormrage:http, but there's a problem: user ...
0
votes
1answer
27 views

Can't login after chown command [duplicate]

I just installed elementary OS dual booted with windows 10. After the installation. I saw that the / root directory has every file and folder locked. I can't rename, delete or create anything there. ...
0
votes
1answer
77 views

auditd / auditctl: Are chown and chmod “write” -w type of an operation?

Are chown and chmod “write” -w type of an operation? I'm using auditd to watch folder permissions. There are different options read, write, execute, attributes. I just want to watch chmod or chown ...
-1
votes
1answer
73 views

How can I revert accidentally changed file ownership [closed]

I did cd /home; sudo chown -R my-user-name: ./ on Ubuntu 14.04. ls -lF /home total 20 drwxr-xr-x 51 lord lord 4096 Apr 5 10:38 lord/ drwx------ 2 root root 16384 Oct 12 2017 lost+found/ How can I ...
0
votes
1answer
71 views

Files missing in GUI after recursive chmod or chown

I was trying to set permissions on all of the files in a removable hard disk. I had tried chown and chmod on the disk address (i.e. /dev/sdb) but I still couldn't move files as a user. Then I tried to ...
1
vote
1answer
149 views

SUDO not found when calling inside a function in BASH script

I am trying to create a function in Bash that creates a directory, then sets the ownership, like this: create_dir() { local PATH=$1 local OWNER=$2 # create log directory echo -e "\n* Creating ...
0
votes
1answer
121 views

changing ownership on NFS shared ZFS storage - quota exceeded

I have very bizarre problem. I have CentOS server 6.10 and ZFS storage. Now storage is configured long time ago by someone, and I found out that for certain user there is a quota set. when I check on ...
0
votes
1answer
234 views

How create a folder owned by specific username & groupname?

In mac groupadd command does not work: After $ sudo mkdir -p /a/b, a$ ls -l total 0 drwxr-xr-x 2 root wheel 64 12 Jan 09:46 b a$ pwd /a a$ a$ a$ uname -a Darwin user01vl 18.7.0 Darwin Kernel ...
0
votes
1answer
33 views

Change owner to a file when saved in a specific folder

I have a NAS with a directory for each member of my house. My user name, is member of each member's group. So I have access to folders of all users. I want, when I place a file, inside a user's ...
2
votes
2answers
346 views

chgrp chown usermod are useless if not root?

I am logged under 'achille' achille belongs to 2 groups: groups achille achille: achille users I want to change the group owner of file 'tree.test' to group 'users' ls -l tree.test -rw-r--r--. ...
0
votes
2answers
103 views

How do I make a directory part of a group?

I created a directory and the next step is to make that directory part of a group. Is this down with chown? Or another command? This is for my schoolwork. We have gone over permissions and changing ...
0
votes
0answers
73 views

Why I get 2 different outputs for 'whoami' command in Linux?

I got here from StackOverflow because I couldn't find a solution there. Here is the link to the question. When I open terminal and type whoami I get m1ck0 which is my user. But when I enter whoami ...
0
votes
1answer
77 views

useradd account cant login through GUI

I'm using KALI fresh install. Linux kali 5.2.0-kali2-686-pae #1 SMP Debian 5.2.9-2kali1 (2019-08-22) i686 GNU/Linux I created a user using useradd akkilah Then i added this user to sudo group ...
1
vote
1answer
30 views

Why does getegid work for others but not me?

I have the following test program: //File: egid_test.c #include <stdio.h> #include <unistd.h> int main(int argc, char** argv) { int egid = getegid(); printf("my effective group is %...
0
votes
0answers
792 views

Best way to chown on newly created directory via mkdir -p

Suppose I did a mkdir -p a/b/c/d and directories a,b (a/b) already exists. so it will only create c/d. Now I want to only change the owner of directories c and d not a and b using chown. chown -R ...
0
votes
0answers
45 views

Scanned documents only readable by the user that scanned ~linux

I've been troubleshooting some time for this, and I don't seem to be able to work out, what the solution could be. I have a setup, where the copier is connected to my fileserver, so that when a user ...
0
votes
1answer
90 views

Files downloaded from FileZilla have “-????????? ? ? ? ?” permissions and I can't chown them with root

I download some files through FileZilla and all of the files in subdirectories have this "???" owner/group permision: -????????? ? ? ? ? ? file_a.txt -????????? ? ? ? ? ? file_b....
0
votes
1answer
165 views

changing folder ownership, operation permitted, also as root

I have 2 moxa computers (Debian 9) with both an SD card installed. the problem is with one computer's SD card mounting. I can not change group ownerships /dev/mmcblk0p1 /media/sd-mmcblk0p1 vfat rw,...
0
votes
1answer
131 views

I am creating directories using shell script and i am using 'chmod g+s' permission on the directory but the recursive permission is failing [duplicate]

I am creating directories in a shell script with below permissions chmod -R 770 /user/mydir chown -R user:mygroup /user/mydir chown -R g+s /user/mydir However whenever I am creating a new directory ...
0
votes
1answer
27 views

How to operate on a directory with different owner from a script?

Few days ago i have installed elasticsearch, For diagnosing some problems on my elasticsearch setup, i have checked the logs files located in /var/log/elasticsearch and tailed them but apparently the ...
1
vote
1answer
248 views

Why can't I chown a pipe? [closed]

From a discussion on useless use of cat. I decided to see if It was possible to avoid some of the troubles by changing the owner of the pipe. So I did: # cat | cat & [1] 16500 # cd /proc/16500/...
1
vote
1answer
658 views

Allow non-root user to change group for it's own files

My server at home uses rsync to backup files to my VPS, but I have an issue with setting the group property for uploaded files. Because the rsync uploads the data to a folder which can also be ...
4
votes
1answer
148 views

Changing default USB drive mountpoint owner

I am developing a device that runs Raspbian on Raspberry Pi. The device runs a background process that should be able to access usb drives when they are plugged in. The problem is that the background ...
7
votes
2answers
2k views

Can't remove a file with file mode bits a+rw

I have a file with the following file mode bits (a+rw): [0] mypc<johndoe>:~>sudo touch /tmp/test [0] mypc<johndoe>:~>sudo chmod a+rw /tmp/test [0] mypc<johndoe>:~>ls -l ...
1
vote
0answers
435 views

Access permissions for google-compute-engine script

I would like to run a python script on compute engine, which uses a Linux-based operating system ("debian-9-stretch-v20180307"). I am using a bash boot script with code as follows: #! /bin/bash ...
5
votes
2answers
17k views

chown: missing operand after ‘root:users’

I try to change owner to root:users recursively below a directory, if owner is other than root:users. cd /dir/ find . \( ! -user root -o ! -group users \) -print0 | xargs -0 chown -vc root:users I ...
0
votes
3answers
125 views

Revert changed ownership of files under /usr, Void Linux

Having lost my mind I did chown -R root:root /usr on a Void Linux system Would someone be so nice as to mail me the results of ls -lR /usr on a Void system. I'll go over the changes, make everything ...
1
vote
3answers
15k views

what is chown root:root doing?

I read a tutorial and was instructed to do chown root:root /home/mynewuser as part of the process to get my ssh key working with a new user i created "kevind", however it broke the path. What does ...
0
votes
1answer
1k views

No permission to chown /mnt/hdd

I don't have permission to chown the mounted directory /mnt/hdd. I am currently logged in as root. The ls -l output is: rwxrwxrwx 1 root root 131072 Jan 1 1970 hdd I am mounting it via fstab ...
0
votes
1answer
3k views

can not set user write permissions to file in SMB mounted directory [duplicate]

I have mounted a Windows 10 directory so I can edit some files on my Windownz machine. sudo mount -t cifds //W10/Users ~/public/ -o username=bobby When checking the directories they all have the ...
2
votes
2answers
10k views

SSH configuration: chown username:group: says invalid user

My Ubuntu16.04.4 server has username: graycodes THE ERROR OUTPUT: chown: invalid user: 'vagrant:vagrant' I'm setting file permissions for OpenSSH. What I'd like is to keep my username as ...

1
2 3 4 5