Questions tagged [chown]

The chown command is used on Unix-like systems to change the owner of a file.

The chown command is used on Unix-like systems to change the owner/group of a file.

147 questions
2
votes
1 answer

Can't modify or chown files on readynas nfs share

I have a readynas with nfs sharing. I have a bunch of files that I can't write to on the share. They're owned by nobody:nogroup and if I try to chown them I get chown: changing ownership of `myfile': Operation not permitted even when I run it as…
mmrobins
  • 123
  • 1
  • 5
2
votes
1 answer

How to make sure that user have recursive permission create folders and files

I have user gitlab-runner which is running CI and basically whenever I push something to gitlab repository it will build the project and then copy it to /var/www/stanislavromanov.com. The problem is that it has no permission to do so. Error $ cp -R…
sed
  • 297
  • 2
  • 4
  • 12
2
votes
1 answer

ubuntu 14.04 server wordpress file permission

I have an webserver running Ubuntu 14.04. I host 3 wordpress 4.1 sites using apache virtual hosts. The website are working well but I can't upload any picture using wordpress>media>library>add new. The webistes are located on /var/www/website…
2
votes
4 answers

Rsync from a local laptop to a VPS with correct ownerships

So I have this workflow which works but is clumsy" RSYNC to ultrapress.co rsync -azP --delete /Users/rocketadmin/Sites/vagrant-local/www/wordpress-default/wp-content/themes root@107.170.237.162:/var/www/ultrapress.co/htdocs/wp-content/ rsync -azP…
Yoyo
  • 21
  • 2
2
votes
3 answers

Find, chown and exclude directories

I would like to change the ownership of all files and directories but exclude some directories: find -user test ! -path "./dir1/*" ! -path "./dir2/*" -exec chown -R root:root {} \; The ownership of the excluded directories is still changed? Regards
HTF
  • 3,050
  • 14
  • 49
  • 78
2
votes
1 answer

What could cause *every* command in RHEL to be executed by root?

Recently I was asked to look at a system for a "friend" that left me completely stumped. Their original problem stated to me: They have a RHEL 5.10, gnome desktop fairly typical install They are having trouble running a Retina scan They claim…
DaveParillo
  • 148
  • 5
2
votes
1 answer

How to safely change owner:group recursively?

I'm copying one users home directory to be the home directory of user #2, and therefore need to chown the contents to the new user. Running: find /home/user2 -user user1 -exec chown user2 '{}' \; find /home/user2 -group user1 -exec chgrp user2 '{}'…
superboot
  • 123
  • 5
2
votes
2 answers

ls permission denied even with execute permissions

I chowned recusively /srv/site to www-data:www-data and chmodded it recursively with ug+rwx. I then added myself to group www-data. $ sudo usermod -a -G www-data cyrus $ sudo chgrp -R www-data /srv/site $ sudo chmod -R ug+rwX /srv/site However, why…
Zhianc
  • 123
  • 4
2
votes
1 answer

Directory ownership keeps changing

I run my own git server on my debian server. I use gitosis for access control. I noticed that my /opt/vc directory changes ownership from git:git to myUsername:myDefaultGroup every so often. Almost like something runs chwon -R…
alexenko
  • 123
  • 3
2
votes
2 answers

How to make a folder accessible to users of a certain group on linux

I tried to make a the /opt/apps folder accessible to all users of the 'www' group. The main user of the group would be the 'jboss' user, so I runned: sudo chown -R jboss:www /opt/apps Both the 'jboss' and the 'ubuntu' user are in the 'www' group,…
Rubem Azenha
  • 675
  • 3
  • 8
  • 15
2
votes
2 answers

Make files editable for guests without using chmod

Sorry if this is the wrong place to post this, or if it has been posted before. I couldn't find anything though. If I log on to a linux server without supplying a username or password (from windows through samba), what user am I logged on as? The…
user84273
2
votes
2 answers

How to give ownership to root without being root ? (needed for Apache)

I've got a PHP script that creates a folder on my server. This folder is supposed to be accessed via Apache, and users can view it online. Now if I create this folder while being root, everything works as it should, I can view the html/php when…
xtrimsky
  • 123
  • 1
  • 3
  • 12
2
votes
1 answer

Setup Directory Permissions For Multiple Users To Read/Write

I am trying to figure out how to setup the permissions on a directory (/apps) so both the root user, and another user justin can read, and write into the directory. The user justin is part of the group devs. /apps has permissions of drwxrwsr-x, with…
Justin
  • 5,008
  • 19
  • 58
  • 82
2
votes
4 answers

Cannot login to Solaris due to chown on /usr directory

Someone ran "chown -R username /usr" and now I have no way of logging into the box to change it back. SSH has been disabled, X Server won't start so I have no graphical GUI, and the console login keeps saying "Login Incorrect" when I try to login. I…
smpappas
  • 33
  • 2
2
votes
1 answer

chown to a user I can sudo to

One of our users who has sudo privileges to multiple non-root users (role accounts for use with particular projects) would like to be able to change ownership of files among those users: e.g., if sudoers looks like jane ALL=(widget-dev,releng)…
Aaron D. Ball
  • 33
  • 1
  • 8
1 2
3
9 10