Questions tagged [chmod]
chmod (short for change mode) is a Linux / Unix command used to change permissions of files and directories.
324
questions
1
vote
0
answers
79
views
Why does the umask not change as expected in Ubuntu 24.04?
When I create a directory or a file in my website directory (/var/www) with sFTP on Ubuntu 24.04 the chmod is 775 for directories and 664 for files.
I would like the permissions to be 755 and 644.
I ...
0
votes
1
answer
59
views
Messed up with /dev/tty* ownership
I was flashing a Flipper Zero Wifi Dev Board and I needed to have /dev/ttyACM0 owned by dialout group...
The thing is now I have tried to revert the stuff, making a chown root:tty /dev/tty*, and chmod ...
0
votes
0
answers
70
views
How did this usage of chmod break sudo access?
In many other topics, I have seen people breaking their sudo access with commands such as
sudo chmod -R 777 /
and variants. Thinking I was doing it right, I have executed the following commands on a ...
1
vote
1
answer
448
views
chmod setuid giving operation not permission even though the I am the owner
shivanshu@<host> ls -l hello.sh
-rw-r-xr-x 1 shivanshu users 63 Sep 7 17:34 hello.sh
So I am clearly the owner of the file. I am able to change normal permissions like r, w, x using chmod ...
0
votes
1
answer
38
views
Run bulk chmod for all sub-folder .git/ in each project
I know how to CHMOD for single folder such like chmod 700 .git/, however in my server it has multiple project, each of them contains .git/ folder. From a report of repo-lookout.org, they suggest to ...
1
vote
0
answers
234
views
Home folder has been transformed into an encrypted file
Hi I have a weird problem, I've never seen before.
I'm running Linux Mint 20.1.
While running a live USB to try to fix a problem with file permissions on my root folder someone suggested I run >
...
0
votes
0
answers
334
views
How do I specify chmod 744 in Windows Powershell recursively?
Was going to comment on this question but I do not have the rep.
Is there a way to do this recursively?
I would like to give all privileges to any administrator user.
Nothing I do in the windows GUI ...
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 ...
2
votes
2
answers
2k
views
Is there a Windows equivalent to chmod rx (no w access)
I've been trying to use the Windows 10 icacls utility to do this. I did some searching here, and I found this, but it doesn't my specific question. I tried adding a comment to this question, but I don'...
1
vote
0
answers
231
views
Make a file unreadable for owner on Windows
I am working with the automated test suite of a software project. I have an automated test case that should verify that the code works correctly when a specific file is found, but the program does not ...
-1
votes
2
answers
1k
views
Did I break sudo?
So I typed
sudo chmod 777 -R /usr/bin
and now when I try to use sudo, it says,
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
I tried to change the permissions of /usr/bin/sudo ...
0
votes
1
answer
2k
views
Does `chmod +x` make a file an executable or does it assign execute permission on the file?
Does chmod +x make a file an executable or does it assign execute permission on the file?
For example - chmod 111 will allow execute permission to user, group, everyone else.
0
votes
2
answers
688
views
Method to set permissions equal to or less than something like "0740" in Linux
I want all files in every user's home directory to be 0740 or less permissive.
Let's say a user has perms like this:
-rwxr----- 1 doej users 321 Jan 6 2013 file1.txt
-rwxrwx--- 1 doej users 555 Jan 6 ...
1
vote
1
answer
304
views
How are Apparmor and chmod related, if at all?
I'm a beginner programmer setting up my very first Virtual Machine (Debian bullseye) and am trying to wrap my head around Apparmor. When I read it manages "network access, raw socket access, and ...
0
votes
1
answer
436
views
Kali Linux chmod 666
I'm using a user I created with adduser that I logged into. I created a directory through this user (not root) and changed permissions from the standard 644 to 666 (no pun intended) with chmod 666 &...