Skip to main content

All Questions

Tagged with
0 votes
0 answers
254 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
1 vote
1 answer
449 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
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
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
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
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
803 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
2 votes
2 answers
8k views

How to fix broken "etc/sudoers" ownership on EC2?

Backstory: I was trying to get PHP to execute node, but ended up changing permissions / ownerships on probably more files and folders than I should of. At one point I stumbled upon someone's ...
chamberlainpi's user avatar
0 votes
1 answer
686 views

Change owner on its own directory

I have a script running with the user user1:user1, making operations inside a directory dir. At the end of the script, I would like to use chown to change the owner of the script to user2:user2 But ...
ôkio's user avatar
  • 101
1 vote
2 answers
872 views

Confirmation prompt for chmod, chown

I'm just trying to add a confirmation prompt to a few linux commands like chmod and chown. I've tried to google this but I can't find much information on the topic. While searching I found out ...
Petar Vasilev's user avatar
0 votes
2 answers
2k views

chown -R root:root .* in /root performs chown on /

When running the command in the title from /root it somehow jumps up to / and changes ownership for ALLfiles, i only noticed because error messages for /proc popped up. Maybe i'm getting old but ...
J.Lambrecht's user avatar
2 votes
3 answers
12k views

Why I can't access to this directory after that I use the chown command?

I am not so into Linux and I have the following problem. I have installed a LAMP environment of an Ubuntu Linux system dedicated to the develop (it is on my PC and it is not a production server). So ...
AndreaNobili's user avatar
  • 7,201
0 votes
2 answers
3k views

chown not working on ext4 hard drive

I have a new 3TB internal hard drive and after writing some data to it I completely zero'd the drive using DD. I then created a partition table (GPT) in Gparted and created an ext4 partition. All went ...
user avatar
0 votes
1 answer
267 views

Checking if specific user used chown on specific directories?

I recently granted one user sudo access rights on test server. This morning I see that server is screwed up. I see that owner rights where changed on many directories. For example many root ...
Andrius's user avatar
  • 607
6 votes
2 answers
27k views

Change default permissions for new files and folders

Every time I create a new file or folder in Linux, it is accessible for r/w by myself, not the group. I want to change my system setting such that every new file or folder will be automatically ...
Ali's user avatar
  • 451
0 votes
1 answer
96 views

Granting full rights on all files (owned by su) within certain directory

I got some trouble with a server situation, where i keep some configuration files in a sub-directory of a web project. Using my superuser account, i make changes to these files, which NetBeans commits ...
SQRCAT's user avatar
  • 657
0 votes
1 answer
741 views

Unable to retain any root created files and folders after warm reboot in linux

I installed and ran petalinux on zynq board. It runs perfectly fine and boot in around 3 seconds. To boot it this fast I had to do some configuration before compiling the source. The problem that I ...
gpuguy's user avatar
  • 271
0 votes
1 answer
181 views

Ubuntu file ownership issue

I've got a problem with my forum platform being unable to install modifications, as it complains the "Packages" directory isn't writeable. It's chmodded to 0777, so it's not a permission issue, but an ...
i-CONICA's user avatar
  • 116
4 votes
5 answers
72k views

chown: invalid user: ‘www–data:www-data’

I'm experiencing strage problem. I simple need to give permissions www-data to a folder chown -R www–data:www-data /somefolder chown: invalid user: ‘www–data:www-data’ grep www-data /etc/passwd www-...
Orlo's user avatar
  • 263
0 votes
1 answer
2k views

How should chmod and chown be used together?

I recently sold my mac, and before doing so I put its files on an external HDD. Now I'm using Linux to move those files to a larger HDD, but some folders still retained some residual mac permissions, ...
Nick Chandoke's user avatar
-1 votes
1 answer
4k views

Take control of all disks/filesystems automatically in linux (Kali)

I have two mac disks plugged into my Linux Kali and for the life of me I cannot get ownership of them. (LaCie) I don't have this problem in Windows or Mac, I just copy the files. Drag and drop. But ...
Graham's user avatar
  • 1
2 votes
1 answer
2k views

Accidentally ran "chown -R ubuntu:ubuntu /", how to repair?

I accidentally ran "chown -R ubuntu:ubuntu /" on a cluster of 10 servers. I've since managed to repair the majority of the filesystem by initially editing /etc/rc.local, placing a lot of chown ...
user avatar
2 votes
2 answers
2k views

Understanding file ownership Linux

I have a Java program on my Linux box and I wanted to create a little one-liner shell script in /bin to prevent having to navigate to the folder of the program and setting all the command line ...
Speccy's user avatar
  • 353
3 votes
1 answer
4k views

Accidentally changed the owner of /bin and other directories

I recently made something very, very stupid. Instead of typing: chown adam ./* I wrote: chown adam /* (I forgot about the very important dot). Now I have some files with owner adam instead of... hmm I ...
Yob's user avatar
  • 370
11 votes
3 answers
28k views

Transmission-daemon not picking up on watch directory

Trying to get my transmission-daemon to pick up files from a dropbox folder, to make remote starting easier (it's a headless system). As far as I can tell, the settings.json file is as expected, but ...
Mild Fuzz's user avatar
  • 743
0 votes
2 answers
1k views

Accidently changed the owner/group permissions of linux /

I accidently changed the permissions of linux / sudo chown -R deploy:deploy / and messed up every thing. SSH is not working, web server showing error. And it is a cloud server! (Ubuntu 10.04) There ...
Mithun Sreedharan's user avatar
39 votes
3 answers
154k views

Creating files and directories with a certain owner (user/group) while sudoing

I need to wget something (results in a compressed file in cwd), then I have to extract it, then do some copy/move/modification stuff and perhaps finally execute an script (from the downloaded archive)....
Ashkan Kh. Nazary's user avatar
0 votes
3 answers
2k views

How do I give a user 777 permissions without affecting others?

I have a user on my CentOS server who is not part of any group, just by themselves. How can I give that user 777 permissions without affecting any other user on the server? I have chroot off, so I ...
Chown12's user avatar
46 votes
2 answers
135k views

Allow specific user permission to read/write my folder

I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that? chown wouldn't do it because I still want to be able to be the owner of ...
Zenet's user avatar
  • 685
10 votes
3 answers
2k views

How to make a file editable by two different users in different groups?

I have a folder at /home/www/, and the owner is www, which is part of the www-group. I have another user, john, part of the john group. How can I chown /home/www/ to make it writable by both www and ...
user avatar
5 votes
3 answers
22k views

Multiple Users with owner rights?

I have bought a VPS and I am busy with setting up a FTP server. This is working now, but i can give only one account owner rights. So i have made a group 'administrators' with 2 users. The problem is ...
user avatar