Skip to main content

All Questions

Tagged with
2 votes
2 answers
1k views

root cannot chown /mnt directory

I have a got a USB key with some directories on it. All files belong to root. whoami root id uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 ...
achille's user avatar
  • 137
0 votes
0 answers
250 views

cygwin /usr/bin/install cannot change permissions

When I run /usr/bin/install, I get permissions errors: bifrost ~ 857# groups None Local account and member of Administrators group tsysadm Administrators Users NETWORK Authenticated Users This ...
Erik Bennett's user avatar
2 votes
0 answers
3k views

Run script with root permission as normal user

Problem: How can I run a script owned by root with root permission as normal user? Let's take for example a folder /path/to/folder. First I make sure that the folder and all content is owned by root: ...
ningelsohn's user avatar
1 vote
1 answer
440 views

What does it mean to chown a directory non-recursively?

You can do either chown $user $path or chown -R $user $path. What's the difference when $path is a directory? The second invocation would also chown all files and directories inside $path recursively. ...
Noein's user avatar
  • 151
0 votes
0 answers
572 views

Is it safe to change ownership of several sub directories in /usr/local on MacOS Big Sur?

When trying to install some support for FORTRAN on my macBook running Big Sur and using brew I get an error that some /usr/local folders are not writeable and am asked to use chown to change ownership ...
Nate Lockwood's user avatar
0 votes
2 answers
2k views

chmod/chown/mkdir: Operation not permitted as root

I get Operation not permitted for root user on one server but not on the other "identical" server. Running on Amazon Linux 1. Server 1: [root@preprod-1 ]# chown root:root /s3mnt/outliers/ ...
masterpiece's user avatar
0 votes
0 answers
43 views

How to (effectively) make a group an owner for changing privileges

I have data on disk which has a high likely-hood of accidentally being modified and I want to remove all write privileges by myself or anyone else. However, occasionally this data DOES need to be ...
nanotek's user avatar
  • 101
5 votes
1 answer
2k views

Why is a normal user allowed to give away a file/folder by running `podman unshare chown`?

I think that usually a normal user is not allowed to give away a file or directory by running chown without sudo. A question was asked and answered at unix.stackexchange:Why can't a normal user chown ...
Fang Hung-chien's user avatar
0 votes
1 answer
1k views

Linux auto chown web uploaded files to users folders

I have a home server that stores my files and I access the files in my internal network with samba. I have 3 users and each user has its home folder on /home/user. In order to access the files from ...
Lorenço Santos's user avatar
2 votes
3 answers
4k views

How to automatically change permissions and owner:group on any file added to a specific directory?

I run an unRAID server (unRAID is based on Slackware) and would like to find a way to automatically change the permissions and ownership of every file added to a specific directory. Specifically, I ...
xthursdayx's user avatar
0 votes
1 answer
108 views

Can I undo a `sudo chown -R /` on Mojave? [duplicate]

I ran a command that ended up executing as sudo chown -R / Can I revert / to default permissions?
MicFin's user avatar
  • 101
0 votes
1 answer
3k views

Can't change owner of folders/files on thumb drive

I have a drive being mounted (either manually or automatically using usbmount) and I can't change the owner or modify the permissions on the mounted drive or folders/files within in order for Mono to ...
Jesse Roper's user avatar
1 vote
2 answers
1k views

Centos: Apache needs to read files created by Tomcat

After trying a lot of different solutions I came here for some help. I have a web apps in apache HTTPD which serve the frontend and a Java app in Tomcat in the same server. The thing is that the ...
Faabass's user avatar
  • 113
1 vote
1 answer
3k views

linux permissions / chown vs ftp

I have (I guess basic) problems with Linux permissions/ownership. I have FTP user "ftp". Then I have all files on my server under different user "nginx". To make the websites work I need to have all ...
Tim's user avatar
  • 11
0 votes
0 answers
801 views

cannot chown file as root

After mounting a NTFS or fat32 partition (not as readonly), I try to change it to my user permissions with sudo chown user: file However I am then told that the "Operation is not Permitted". I have ...
Lightning77's user avatar

15 30 50 per page