Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [chown]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

How to setup a NFS Server on Mac Catalina, that support chown on Client?

I have set the following configure in /etc/exports on Mac. /Volumes/MacHD 192.168.1.100 (rw,alldirs,insecure,sync,no_subtree_check,no_root_squash,no_all_squash,crossmnt) /Volumes/MacHD is a Volume I ...
0
votes
1answer
70 views

Proper rights and owner for web executable file saving/reading sensitive information

I have app wrote in php that saves and reads sensitive information into file /sensitive/sensitive.txt. File that is saving and reading sensitive information is user.php. The whole app is in a separate ...
0
votes
0answers
76 views

Changing User - Ubuntu 18.04 LTS

I installed mariadb, nginx, php7.2-fpm, ufw, fail2ban, zip and unzip as a root in the past. My site is WordPress. Now I have added an user with root privilages into my server. I won't use root user ...
1
vote
1answer
123 views

how to add a dot recursive in file/folders permissions

example of files with there permissions -rwxr-xr-x. 1 root root 659 Jan 4 2018 zookeeper-server-initialize -rwxr-xr-x. 1 root root 649 Jan 4 2018 zookeeper-server-cleanup -rwxr-xr-x. 1 root ...
0
votes
1answer
40 views

get write, read, execute permission of a folder to a user

In an ubuntu server 18.04, I have 2 users: userA and userB. There is a folder /home/userA/data I am going to get read, write, execute access of data to userB. unfortunately the command chown userB ...
1
vote
1answer
368 views

Even root cannot change the ownership of a file in external drive?

Got the below error from qemu: Unable to complete install: 'Cannot access storage file '/run/media/msingh/WDELEMENTS1/test/CentOsRestoreTest.qcow2' (as uid:107, gid:107): Permission denied' So tried ...
0
votes
1answer
66 views

Linux create file system with nonexisting owner/group for foreign (embedded) system

I want to create a file system image for a foreign Linux system on a local Linux. First of all, the foreign system could have different CPU architecture, such as ARM, MIPS, rather than my local PC ...
0
votes
1answer
144 views

CentOS 7 - systemctl - chown - unexpected remote arg

I have a custom made service file and I'm unable to run it. Here is the ExecStart line: ExecStart=/bin/rsync --ignore-existing -rtvu /var/foo/foo/ /var/foo2/foo2 && /bin/chown nginx:nginx -R /...
0
votes
1answer
215 views

Can't see files when browsing nginx webserver. Incorrect permissions?

I am using centos 7 with nginx 1.12 to host a yum repository locally. When I try to browser the files via the browser, I can see the folders, but no files inside them. Im wondering if i might not have ...
5
votes
3answers
1k views

How can I chown a file to a subuid without sudo

Basically, What is going on here and what am I not understanding? I have a set of subuids for my user. I want to chown a file to specific subuid which is part of this user's allocation ...
0
votes
1answer
324 views

SSH refusing connection after chown command

I have SSH access to a Centos 7 virtual machine. I wanted to change the permissions on the apache folder (var/www) on my user in order to edit the files remotely, but I erroneously performed chown -R &...
0
votes
2answers
80 views

Permissions, ownership, and grouping changed for no good reason in webapps

I have an Ubuntu 16.04 Nginx server environment with several (WordPress) webapps under /var/www/html. My Nginx user is www-data. Each time I add A webapp, I execute: chown www-data:www-data /var/...
4
votes
0answers
1k views

Non-root user needing chown capability on NFS client

I am providing an NFS server as part of a collaborative project with another group producing client software over which I have no control. Their software provides file management to its users through ...
0
votes
0answers
565 views

Who should own /usr/share/elasticsearch/ in order to Elasticsearch to start

I'm starting with elasticsearch and noticed that in order to startup elasticsearch the directory /usr/share/elasticsearch/ and all subs need to be own by elasticsearch:elasticsearch. If it's own by ...
0
votes
2answers
324 views

How to manage FTP and CHMOD / CHOWN when working with a freelancer?

Nowdays, when working with a freelancer, I add a new user to Debian, create a ftp access to this user and give that to the freelancer Problem is that freelancer can access some data I want to keep ...
0
votes
1answer
607 views

ubuntu, folder perms, drwxrwx---, php user in group, can't create file

i'm stuck & need help understanding file create permission for members of group. in php, i want to fopen / create a file in a folder that is owned by mysql:mysql (for importing data into mysql) ...
1
vote
1answer
838 views

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 ...
0
votes
1answer
2k views

Php can't write anything [duplicate]

Just moved my websites to my first vps (centos 7). So i'm very new to linux. Now I have a problem: php cant write anything. Can't make dirs, files, edit them. Php runs as "apache" Things I tried: ...
1
vote
0answers
609 views

AWS Linux EC2 - How to install suPHP or FastCGI php hander

Seems I'm having permissions issue with AWS Linux EC2. Specifically, I am migrating a Joomla site, and extension and core updates from Joomla Admin won't install because of Apache user/group ...
0
votes
1answer
821 views

I changed the owner of sudo. Is it possible to change it back to root?

Title says it all. I was copy-paste troubleshooting and I accidentally changed the owner of sudo from root to my username. No I can't sudo because: sudo: effective uid is not 0, is sudo installed ...
0
votes
1answer
1k views

Putty: pscp file transfer change permission

I am transferring my file using pscp with the command below: pscp target\app.war root@127.0.0.1:/jetty/webapps What would be the syntax to change the ownership of the app.war file ? In other words ...
1
vote
1answer
65 views

HHVM w/ FastCGI vs. Uploading via WordPress

I successfully installed nginx, HHVM (running with FastCGI) etc. on an Ubuntu 15.10 installation, and HHVM is, in itself, running fine. My /var/www directory is owned by my user and group (e.g. sam:...
0
votes
0answers
810 views

chown: Operation not permitted for root on ext4 root-partition

After upgrading from Ubuntu v14.04 to v16.04 chown doesn't seem to work any longer on my server. I checked following: filesystem is RW user exists folder is not immutable all commands executed as ...
0
votes
2answers
814 views

Rsync to remote server and change file / directory ownerships

I am using Rsync to deploy to a remote server, which is working. However the file and directory ownership always replaces old files with root:root I need the ownership of all files and folders ...
6
votes
2answers
10k views

sshfs permission denied even for root user

I use sshfs to mount a remote folder from another server to the local server. Mounting the remote folder works without a problem using the following command: sshfs -o allow_other ...
0
votes
0answers
27 views

Accidentally ran chown -R / and now mail queue not being delivered [duplicate]

EDIT: BTW, everything else including all websites on the server are running fine except that mail queue in whm is not automatically being delivered. What directory would I need to change ...
0
votes
2answers
1k views

Give private key ownership to user without /home

so I am looking to set up ssh private/public keys between two servers, for use with sftp (and ultimately lftp using sftp - but one step at a time). I have created the private and public keys, and ...
3
votes
1answer
5k views

chown or chgrp NFSv4 with idmapd error: Invalid argument

I only found 1 or 2 other posting on this, without any solution, so I am creating a new, more specific question for my case. System set up: NFS server running NFSv4. NFS client running RedHat 6, ...
-2
votes
1answer
218 views

Chown results in not being able log in VestaCP [duplicate]

so I needed to chown a folder and I accidently wrote chown -R admin:admin / And that chmowned all files for ~5sec then came up an error that it can not chown something and I stopped. After I ...
0
votes
1answer
1k views

Prevent changing ownership of a file

I have file with 777 permission. How can I prevent changing ownership of that file by others? ie I need to prevent chown x:y myfile myfile is actually a log file written from web. it's ownership is ...
2
votes
1answer
2k views

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. ...
-2
votes
1answer
39 views

Permissions/groups setup [closed]

I have setup up a Group that includes a few users (mygroup) then have set the owner of a web directory to be apache and the group to be mygroup. chown -R apache:mygroup /home/myweb Then I have set ...
-1
votes
1answer
277 views

Shared /home with NFS: chown /home/userdir to a user that doesn't exist on the server

Let's say I have a NFS /home on my server that gets mounted on boot by clients (EDIT: on their own machines -- locally), in order to have a common /home for my clients, this way they automatically ...
0
votes
1answer
210 views

Reset ownership [duplicate]

An employee accidental recursively changed permissions from the root directory to apache. I reran it to root, we fixed MySQL, but SSH still doesn't work. What is the correct way to restore the ...
-1
votes
3answers
713 views

Issues with file rights in CentOS [closed]

May someone explain me how to manage rights correctly pls? I have a file with these rights: 8 -rw-r--r--+ 1 sntecard sntecard 4669 Sep 18 12:34 index.php I am accessing this folder by user ...
0
votes
0answers
328 views

Files 404 unless owned by 0:0

When I upload files to my staging server (CentOS 6.5, Apache 2.2.26) - such as images or PDFs - via FTP, or by using a file upload script I created (using Laravel 4), they 404 even though they exist. ...
-1
votes
4answers
2k views

chown during rsync from windows to unix

rsync: --groupmap=*:www-data: unknown option I am trying to add an option to my rsync line to set the group of the files transfered to have www-data as their group. When i add the option i get the ...
-1
votes
1answer
233 views

chowned root directory recursive [duplicate]

accidently I did "chown -R www-data:www-data /" (I wanted to chown current directory). Is the only good way now to set the system up again from beginning? waaaah -.- Thanks
0
votes
1answer
801 views

Mounted Gluster volume keeps reverting to “root” permissions

Ive got GlusterFS running on an AWS server and its mounted to another AWS server. The folder that is mounted though keeps reverting to "root" ownership, when this happens uploads fail from the web ...
0
votes
4answers
1k views

Reset Permissions and Ownership Script

On a development server (Ubuntu 14.04) we have this shell script running every minute on cron: for dir in /home/*; do username=$(basename $dir) echo "changing ownership to $username in $dir/...
0
votes
1answer
433 views

Change permission for home directory on debian [duplicate]

My Debian machine is running DirectAdmin and we have build our own CMS. By now, when we create a new website a new folder and user will created down the /home/ directory. As an developer to setup ...
0
votes
1answer
482 views

Permission samba shared www folder

I'm having trouble with permissions on a samba shared folder on ubuntu server 14.04. This is the www one. But actually, it's in /home/administrateur. As I want to preserve my www folder whatever ...
3
votes
3answers
510 views

Maintain setgid bit (after bower install or gulp build)

We run web servers where we have the following situation: The www-data user runs the web server and must have read+write access to the files The deploy user deploys all the code The bob and alice ...
2
votes
4answers
454 views

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/...
0
votes
1answer
679 views

Linux permissions in /var/www: What settings can I use for good security practice and still maintain accessibility?

I'm primarily trying to set permissions inside of /var/www . We are using a project format which has the following structure in common for each project: /var /www /runtime /shared /project.com /...
1
vote
2answers
5k views

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 ...
2
votes
1answer
281 views

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 ...
58
votes
3answers
132k views

bad ownership or modes for chroot directory component

I created the user MY_USER. Set his home dir to /var/www/RESTRICTED_DIR, which is the path he should be restricted to. Then I edited sshd_config and set: Match user MY_USER ChrootDirectory /var/www/...
-1
votes
1answer
1k views

Add permissions for a user to folders and files [closed]

I have a user jenkins that creates files and folders in (on ubuntu) : /var/jenkins/workspace/my-project e.g: drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 16:41 ./ drwxr-xr-x 8 jenkins jenkins 4096 ...
1
vote
2answers
100 views

Using chown: Any substantial difference between assigning ownership of the entire directory vs just the files in it? [closed]

An example: Say Apache needs to have ownership of all the files in /var/www/html to serve the pages of a website. Is there any danger in making Apache the owner of this directory (and files and sub-...