A Unix tool for changing file permissions
Questions tagged [chmod]
248 questions
1
vote
1 answer
home/username directory chmod 750 best for security but are some errors
in directory /home/username/public_html
I have a website with CMS.
When I change chmod of /home/username directory to 750, my site doesn't work. I believe my CMS have no access to it.
Is there any way to improve /home/username directory security by…
user951556
1
vote
1 answer
Should both root and wheel users own the files that originally were only owned by root?
Should a wheel user that was created to disable root login and secure SSH have the same ownership as root from a security point of view?

Adam Alleman
- 19
- 3
1
vote
1 answer
NFSV4 w/CHMOD & CHGRP
I'm just starting off with NFSV4 and had a few questions. So normally when creating an NFS share on a NAS filer and mounting on a client I would run a chmod & chgrp to set things up the way I want.
Now, I have done that already on existing…

user16411104
- 31
- 1
1
vote
0 answers
Noexec vs chmod -R -x for malware interogation?
I am setting up a Linux box to examine malware samples. I wanted to create a directory where I could safely unzip each sample and run very basic triage commands against the file to collect information about the sample (for example, hashing the…

Lexicon
- 257
- 1
- 2
- 10
1
vote
2 answers
rsync: [generator] failed to set permissions : Operation not supported (95)
I want to virtualize correctly Android 10 on top of my Jetson nano (arm64) using qemu and kvm on ubuntu 18.04. This is the tutorial that I'm following :
https://github.com/antmicro/kvm-aosp-jetson-nano
everything went good until this command :
sudo…

Marietto
- 143
- 1
- 10
1
vote
2 answers
screen inside systemd daemon on CentOS 8
So I want to run screen inside a systemd service so that I can give the process (inside the daemon) commands while it is running. See at the end of the question for examples of what I want be be able to do.
What I currently have:
A java application…

Rinkana
- 11
- 4
1
vote
2 answers
chmod issue - Incorrect Command Issued
From this linked post (answered by @dmourati):
How can I make a user and give read only access?
On a CentOS box
When attempting to create a readonly account, the command
chmod -R o+rx /
was executed under the root user.
A bunch of "Operation not…

user582648
- 11
- 3
0
votes
1 answer
Effect of chmod -R 777 *
A newbie here.
Can someone help me understand what are the effects of running the following command from a directory:
sudo chmod -R 777 *
Will it effect the whole file system or the contents of that particular directory?
Thanks

Adil Saleem
- 3
- 1
0
votes
1 answer
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 folder.
Ideally only root user could read the…
0
votes
0 answers
chmod permissions in an ACL folder
I set up a folder managed by ACL, meant to let specific "manager" users have total control over files in it. File access seems ok (e.g. a manager user can delete a file owned by any other user) but managers can't set permissions of files owned by…

Nicola Mori
- 281
- 1
- 7
0
votes
1 answer
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 set the correct permissions or ownership.
This…

ARL
- 105
- 3
0
votes
0 answers
SSH login are disabled after chmod 444 -R myfolder /
I have accidently ran chmod 444 -R myfoler /.
Because of a space it changed root dir permission , I have immediately stopped but now all my login are disabled except root.
Please need help asap.
debug output from ssh to my user from root…

anwaar_hell
- 101
- 2
0
votes
0 answers
Allowed SSH user can't edit files in Centos 7
I am working on a remote virtual machine running Centos 7 via ssh. I want to give my user read and write permissions on /var/www/html. What I did is:
sudo groupadd webdev
sudo chgrp -R webdev /var/www/html
sudo usermod -a -G webdev centos
sudo…

firion
- 99
- 1
- 5
0
votes
2 answers
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 confidential such as: config.php or…

yarek
- 827
- 5
- 13
- 22
0
votes
1 answer
Chmods don't seem to apply
I have a script I periodically run that reapplies FACL and chmod permissions for home directories of gameservers I run.
The script first issues a home-directory wide recursive chmod, and then chmods certain files to specific values (first all files…

quake84
- 11
- 2