Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chmod]

chmod (short for change mode) is a Linux / Unix command used to change permissions of files and directories.

0
votes
1answer
30 views

Can't Make an *.AppImage file Executable

I right clicked on a .AppImage file. I chose "Properties" and then "Permission" tab. I'd like to check the checkbox that is next to "Allow executing file as program". It shows that the checkbox is ...
1
vote
1answer
26 views

How to add chmod +x on a file, from right click menu service in mac

so i need to use chmod +x alot, and i thought it could be easier to make a service in Automator to add it to the right click menu, so it will run chmod +x on the selected file as choose it from the ...
0
votes
0answers
59 views

How can I recursively change permissions for files and directories on Windows Subsystem for Linux?

Every time I use sudo chmod -R +755 * or sudo chmod -R +755 ., it resets all of the file permissions to 000 in the directories and subdirectories. If I run sudo chmod +755 *, it will properly add ...
0
votes
2answers
453 views

How to fix 'The application “…” can't be opened' on Mac?

I get this: Some people said use chmod to fix the execution files thing, but I still don't understand how to do it. Can some one tell me step by steps please?
-1
votes
2answers
82 views

The case of special permission on Linux [closed]

I am a beginner in the Linux system and when I learned the commands, I learned to study the permissions and the owners. I understood all the commands but did not understand the special permission. I ...
0
votes
1answer
243 views

Give write access to www-data and another user to a folder

My question is similar to this. I have a custom logs folder at public_html/logs/ I need Apache (PHP scripts) to be able to write to that folder. I also need FTP user myuser to able to read/write on ...
0
votes
1answer
217 views

Is setting CHMOD to 777 Dangerous?

I am trying to install Prestashop and spoke with the technical support representative from BlueHost regarding questions I had on setting the file permissions to 777 as stated in the following ...
0
votes
1answer
5k views

Linux - How to recursively chmod a folder?

How can I recursively chmod everything inside of a folder? e.g. I have a folder called var which contains many subfolders and files. How can I apply chmod 755 recursively to this folder and all its ...
0
votes
1answer
131 views

I can no longer log into my Mac after “sudo chmod 744 /”

Right after I executed: sudo chmod 744 / on my Mac, everything on my desktop is gone, and I can no longer open any applications or folders. So I pressed the power button to restart my Mac, but then ...
0
votes
2answers
1k views

chown -R exclude some directory

I want to exclude some large content directory I'm Using it to chown Directory chown -R admin /home/admin/web/public_html is there anyway to exclude a subdirectory under html Like: chown -R admin ...
0
votes
0answers
171 views

recursive chmod on current directory

I was in a directory I wanted to recursively chmod all of its contents (make writable by the group). I did (with sudo): chmod -R g+w . And something weird happened (I lost all permission to the ...
0
votes
1answer
85 views

Unable to login after manual edit of /etc/passwd

Had a trouble with transmission daemon's permission. It keeps using default debian-transmission even after editing /etc/init.d/transmission-daemon. So I edited the /etc/passwd and set 0:0 to debian-...
-1
votes
1answer
107 views

i need help reversing a chmod, chown and 'whoiam' code

I used this code on an app: chmod 600 /Applications/Freedom.app ; chown 'whoami':staff /Applications/Freedom.app Does anyone know how to undo this?
1
vote
0answers
82 views

Default permissions for files within directory when using rsync

I am attempting to configure the file permissions that are set on directories and files when they are created by a specific user/group, but seem to be having a bit of an issue. I have tried setting ...
0
votes
0answers
1k views

chmod -R -r not working on macOS High sierra

I've upgraded from El Capitan to High Sierra (beta 9). On El Capitan, running the command chmod -R -r <path to dir> works fine (revoking read permissions recursively). On High Sierra I get the ...
0
votes
1answer
548 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 ...
0
votes
1answer
3k views

Run shell script at startup (Kali Linux)

This seems like a very basic thing to do, and I have even followed a few tutorials to get a simple script to be run at startup, but to no avail. Here is what my script, which is in the root directory,...
0
votes
1answer
274 views

Centos: Apache needs to read files created by Tomcat

After trying a lot of different solutions I came here for some help. I have a web apps in apache HTTPD which serve the frontend and a Java app in Tomcat in the same server. The thing is that the ...
0
votes
2answers
4k views

bad ownership or modes for chroot directory “/var/www”

I am getting following error in auth.log when trying to connect to site using SFTP. fatal: bad ownership or modes for chroot directory "/var/www" ls -ld of this directory shows this: drwxrwxr-x ...
0
votes
0answers
276 views

I accidentally chmod 700 /etc. And now I became I have no name user

Today, I accidentally do this in my web server, sudo chmod 700 /etc And now, I can no longer access to /etc folder. Because I am denied from using the /etc folder, I can no longer use the sudo ...
0
votes
1answer
1k views

Setting up a local development environment with nginx on Linux (ubuntu)

I recently moved to a new computer, and copied over all existing git repositories for webdevelopment projects from my old computer. On that old computer, I had installed apache to serve certain ...
0
votes
0answers
2k views

Command not found when I run `sudo chmod+x`

I am trying to install something. When I entered sudo chmod+x FurPowered.client it says command not found How do I properly use chmod+x? https://launcher.amorousgame.com/#mac
0
votes
1answer
71 views

I can run compiled .go file without chmod

I am learning to program in google's Go language, I have a script: package main import "fmt" func main() { fmt.Println("Hello, World!") } So I compiled it with: go build /home/user/...
0
votes
2answers
121 views

How does bash make a file executable?

I know that when I run the command chmod +x filename bash will make my file an executable. What exactly happens to the architecture of the file to change it to an executable? i.e. how does the ...
3
votes
2answers
536 views

Allow root user to read, write execute, folder owner to read only, and everybody else to have no access to a folder ubuntu

I'm making a "wargame" similar to the ones on overthewire.org. I have the root user, Ubuntu, that should be able to read, write, and execute files in a folder. I have one user per folder that should ...
0
votes
1answer
2k views

launch transmission-daemon as root

have trouble with transmission daemon. I need to write files to external hdd, but always get Error: Permission denied Some guys write something about auto-mounting bug, but I can't mount it each time ...
0
votes
1answer
1k views

Is copying files from Windows to Cygwin harmful?

If I copy some files from windows to the /home folder of Cygwin, am I corrupting Cygwin file system? How about if some of these file are executable and I execute them in Cygwin /home folder? Should ...
1
vote
2answers
2k views

How to chmod all folders recursively excluding all folders withing a specific folder?

I would like to chmod all folders and subfolders within a specific folder, except I wish to exclude one folder (and all subfolders it contains). What I have so far, is a hack of the following ...
0
votes
2answers
691 views

How can I change file and directory permissions in one go via SSH?

I'm trying to use find in conjunction with -exec and chmod to recursively change the permissions on every file and directory inside a folder via SSH. I want to do these two commands in one line: ...
0
votes
2answers
38 views

UNIX owner 42286?

An AIX 6.1 server with a NFS share mounted worked for years but then changed owner on all of the files and folders on the mount from sbladmin to a 5 digit code: 42286. It didn't change the group but ...
0
votes
1answer
261 views

Permissions for file in Linux can't be changed by user of owner's group

I created a directory and placed a file in it from user1. Permissions for this file and directory is 070 for example. Then I created user2 and added him to user1 group. I try to use chmod 000 /home/...
10
votes
5answers
9k views

Unable to write to /tmp OSX, unable to correct permissions Operation not permitted

OSX (10.11 El Capitan) is unable to install any software updates or install any software because the /tmp and the /private/tmp folders don't seem to be writeable. Running sudo /usr/libexec/...
8
votes
2answers
8k views

Bash File/Folder Permission Issue on Windows 10

mkdir creates folders with 777 permission by default. How can I make 755 default? Also when I clone a git repository all the files and folders are downloaded with 777 permission! How can I correct ...
3
votes
1answer
208 views

Why can't one clear setuid/setgid/sticky bits via octal notation with chmod?

So today at work, management randomly shows up and asks me to give a crash course on using Linux to a group of engineers. Apparently, they've caught wind of my dissension from Microsoft (due to Win ...
0
votes
1answer
105 views

benefit of chmod-ing Python script on mac

I wrote a simple python script print("hey there") which I execute with this code in the Terminal app: python3.5 script.py I've read that you can preface Python scripts with a hashbang and path to ...
3
votes
1answer
2k views

How to tell chmod to follow symbolic links?

chown has an option -L which tells chown to traverse symbolic links. It seems this option is missing for chmod. Any idea how to tell chmod to follow symlinks as well? EDIT: I'm on Debian.
2
votes
1answer
2k views

Change permissions symbolic link Mac OS

How do you change the permissions of a system link on Mac OS ? I tried chmod -h 755 mylink using iTerm2 with zsh, but it didn't work.
0
votes
0answers
599 views

Impact of “chmod g-w,o-w /” on a Linux System

If one is on as root, and runs this: chmod -R g-w,o-w / What are the implications? And what would one have to do to undo the effects? Yes, the dumb user was me. So we fixed it as follows: Add ...
1
vote
0answers
31 views

Logging into new FTP server, but no directories show up

I've tried this with both ProFTPD and SFTP. I'm trying to chroot a user to /var/www/user however when I log in to the FTP server with their account, I get "/var/www/user: No such file or directory". ...
0
votes
1answer
914 views

MSYS2 permissions

In Windows 10, with MSYS2 I set my fstab to: none / cygdrive binary,posix=0,acl,user 0 0 I am unable to set execute permissions with chmod, despite having acl set in the fstab: # echo > foo # ...
0
votes
0answers
105 views

File permissions not preserved on external hard drive

I have a brand new 3TB Western Digital "Elements" external (USB) hard drive. When I copy (cp, rsync) stuff across from my laptop file permissions are not preserved. In fact everything (files and ...
0
votes
1answer
1k views

Linux chmod: How to allow access to a folder and its subfolders/files

How can I do "chmod 704" to a folder which I want it to allow others to access and download the entire folder including its sub-folders and files? Thanks, Baha
1
vote
1answer
1k views

Prevent deletion of folder but let access to everything inside of it

I know there is the +i flag for files and directories, but i have a deeper Problem. Is there a way to prevent a folder from being deleted by an User which should be able to create / access / remove ...
0
votes
1answer
73 views

Why can't Ubuntu read external volume files after I recursively { chmod +r and remove ACL }?

The commands I used are: sudo chmod -RN /volume and sudo chmod -R +r /volume The external volume is a backup of OSX home folders. The above made it only possible to read what contents is in the ...
0
votes
4answers
112 views

On my Pi, chmod +w doesn't behave as usual?

$ ls -al file1 -r--r--r-- 1 pi pi 0 Feb 10 15:18 file1 $ chmod +w file1 $ ls -al file1 -rw-r--r-- 1 pi pi 0 Feb 10 15:18 file1 #only u is updated $ chmod +x file1 $ ls -al file1 -rwxr-xr-x 1 pi pi ...
2
votes
1answer
4k views

How do I mount as a read-write filesystem and not read-only?

I'm trying to install Gentoo in a virtual machine. I ran into this problem and began researching what the answer might be. The file system is read only. I can't mount it as read-write. I'd rather ...
7
votes
2answers
5k views

SUID bit on directories

In Linux there are SUID, SGID, and sticky bits for directory permissions. I am absolutely clear about the sticky and SGID bit on files or folders. But what happens if I apply SUID bit on a directory?...
1
vote
2answers
7k views

Can't connect Nextetender on Mac OS-X El-Captain

I just upgraded from Yosemite to El Captain but I can't connect Dell SonicWALL NetExtender version 7.5.757. I give this log message: [general error 463] ERROR: Pppd is not setuid-root and the ...
2
votes
1answer
5k views

How to read ls -l permissions

I've been trying to understand Linux permissions. I know that I could download one file via CyberDuck from a remote Linux machine and the other one I was not able to. Here is the output of ls -l: -rw-...
0
votes
2answers
357 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 ...