Questions tagged [chmod]
chmod (short for change mode) is a Linux / Unix command used to change permissions of files and directories.
72
questions with no upvoted or accepted answers
3
votes
0
answers
513
views
Correct permissions for dylib and so libs on macOS
I am building an installer for my application. What would be the correct permissions for *.dylib on macOS and *.so files on Linux? Do they need the execution bit or could they be installed as 644, or ...
3
votes
0
answers
264
views
Debian broken filesystem by chmod -R 0774 /
An user made the chmod -R 0774 / command.
When i execute the su command i get:
"it was not possible to define groups".
If i try to ssh from the root i get:
/bin/bash permission denied
the ...
3
votes
1
answer
1k
views
chmod always unsets setgid bit on directories if I'm not in a group
Here's the scenario: I'm using Ubuntu Linux (12.10, if it matters), and I've got a directory whose permissions are thus:
drwxrws--- paul www-data myfolder/
You can see the setgid bit is set. If I ...
2
votes
1
answer
668
views
I ran sudo chmod go-w /usr on my Mac - is this an issue?
So as the title suggested while troubleshooting a warning message, I mistakenly ran the following command in my Mac Terminal:
sudo chmod go-w /usr
Is this likely to cause me any problems and if so, ...
2
votes
0
answers
2k
views
FTP User/Group permission on VSFTPD and UBUNTU
I developed a vsftp server with three user groups: g1, g2, g3. Each group has a folder with its name. For example.
/home/server/g1
/home/server/g2
/home/server/g3
Each group also has users
sudo ...
2
votes
1
answer
789
views
Unable to create files in a directory
I have created a directory in Virutalbox.
Using VBoxManage, I am executing a script inside the Ubuntu VM directory I created above from Ubuntu host OS. But if the script in the VM contains commands ...
2
votes
0
answers
483
views
Cannot change permissions in symlinked dropbox directory in Ubuntu 10.10
Title pretty much says it all, but here's what I'm doing...
ls -l produces this...
drwx------ 1 brian brian 4096 2010-12-28 14:19 foldername
-rw------- 1 brian brian 0 2010-12-28 15:54 index.html
...
2
votes
1
answer
6k
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 ...
1
vote
0
answers
212
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 >
...
1
vote
0
answers
212
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
vote
0
answers
267
views
Is this an accurate windows equivalent to chmod 750?
I need to interpret Linux permissions as windows permissions for work. How I see it (considering only these identity references exist for the file):
admin group(also owner) with Full control or ...
1
vote
0
answers
303
views
How to chmod by file extension to remove execute permission on some file types?
I have searched but couldn't find a proper way to do that. I find annoying that each time I click on a text or code file I have a prompt where I can execute the file (maybe it's me that messed up ...
1
vote
0
answers
737
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 ...
1
vote
0
answers
3k
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 ...
1
vote
0
answers
2k
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
0
answers
58
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". ...
1
vote
0
answers
263
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 ...
1
vote
0
answers
134
views
Automatically chmod a+r on files copied into my (OSX FUSE / sshfs mounted) VFS
I have a virtual Linux machine running LAMP.
On my MacBook I've mapped ~/remoteFS to this machine's ~/ using OSX FUSE & sshfs.
i.e. First I install OSX FUSE. then I do:
sshfs [email protected]:...
1
vote
0
answers
57
views
Making file's mode 000 on cygwin - does not work
Seems cygwin is unable to cancel a file readability mode, viz.:
$ echo "123" > ttt
$ cat ttt
123
$ ls -ls ttt
1 -rw-r--r-- 1 Administrator None 4 Mar 22 10:19 ttt
$ chmod 000 ttt
$ ls -ls ttt
...
1
vote
0
answers
595
views
Chmod doesn't work for all files
I'm trying to chmod my /var/www folder in Ubuntu, with the command: chmod -R 775 /var/www, and it works for the existing files. However, every time I add a new file, I have to run the command again, ...
1
vote
0
answers
1k
views
Is there anyway you can restrict users from executing a command with another name?
I'm not asking an obvious question here. I would like to elucidate with an example.
A user 'bob' is always executing 'chmod 777 /home/bob/impfiles' so that user 'alice' could make changes to the ...
1
vote
1
answer
3k
views
Changing permissions (read-only) for specific user for specific folder and sub-folders/files in RedHat?
Question is about user permissions in RedHat. How to give read-only permission to specific user just to read a specific folder and its sub-folders and files?
How can I do it?
I've tried: chmod a+r -...
1
vote
1
answer
1k
views
Unable to change access permissions on external ntfs Harddrive
I am fairly new with Linux when it comes to mounting hard drives, so hopefully this is a simple question. I recently purchased a 3TB hard drive that would have read/write access with both Mac and ...
1
vote
2
answers
2k
views
Changing access rights of the specific folder for specifeid user
what is the exact analog of the following two commands in linux
# chmod -R +a "www-data allow
read,delete,write,append,file_inherit,directory_inherit"
/path/to/moodledata
$ sudo chmod -R +...
1
vote
0
answers
4k
views
How do I set the default permission of 775 for all new files and directories in server?
I'm trying to set the permission of any new files to 775 by default (inherited from parent folder), so that every user group can edit these files. I have found and followed this tutorial with no ...
1
vote
1
answer
2k
views
On Linux allow a file to be read/write but not deleted
Is there a way in Linux on a ext4 file system that I can make a file readable and writeable but not deletable?
The directory that the file resides in still needs to be writeable by the owner of the ...
1
vote
0
answers
2k
views
Permanently changing permission of device
My question is related to a Saving permission changes for device question except it is for Ubuntu 10.10: Maverick.
I just setup a FireWire audio interface. Everything works fine, except for I need rw-...
0
votes
1
answer
41
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
63
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 ...
0
votes
1
answer
35
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 ...
0
votes
0
answers
299
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
221
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 ...
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
0
answers
122
views
Secure a folder in a cluster
I have a folder in a cluster that I want to secure by allowing access to me only (read, write and execute). I am new in using clusters, what are the command lines I can use?
I have used umask u=rwx,g=,...
0
votes
0
answers
128
views
Including chmod in shell script - will it work for everyone?
I have a large wrapper.sh file which does a lot of things, but in the end runs catalina.sh tomcat.
Problem is that users who run this wrapper.sh are experiencing error: no permissions to execute ...
0
votes
0
answers
49
views
Using sgid bit on specific executable files to filter their traffic with iptables
I'm trying to filter traffic with iptables for specific applications by their effective owner id (--gid-owner). For this purpose I've created a group
$ sudo addgroup net-user
, set this group on an ...
0
votes
1
answer
2k
views
How to fix 'You don't have permission to open the application' on Mac?
I get the following error when I try to open the app on the mac.
I tried using the following solutions:
Also here is the behavior when I use the keyboard shortcut:
0
votes
1
answer
709
views
How do you use Umask in Linux for creating default special permissions like setuid, setgid, and sticky bits?
How do you use Umask in Linux for special permissions like setuid, setgid, and sticky bits?
0
votes
0
answers
361
views
How do you set read-only in NFS without root privilege on Linux?
This seems like a relatively straightforward question, but I couldn't really find an answer to this on knowledge bases.
Problem
I want to protect some files so they cannot be edited, deleted by other ...
0
votes
2
answers
2k
views
chmod/chown/mkdir: Operation not permitted as root
I get Operation not permitted for root user on one server but not on the other "identical" server.
Running on Amazon Linux 1.
Server 1:
[root@preprod-1 ]# chown root:root /s3mnt/outliers/
...
0
votes
0
answers
62
views
Trouble setting up permissions for jailed SFTP user
I'm running Arch and have created a new user named moderator that I would like to give access to a couple of folders that they can read / write to.
My plan was to create a new folder, named "mod&...
0
votes
0
answers
43
views
How to (effectively) make a group an owner for changing privileges
I have data on disk which has a high likely-hood of accidentally being modified and I want to remove all write privileges by myself or anyone else. However, occasionally this data DOES need to be ...
0
votes
0
answers
344
views
chmod will not set directory permissions for user
I am trying to learn UNIX permissions for the purposes of safeguarding raw data. My OS is macOS Catalina.
While trying to learn to use chmod, I've come across a situation where chmod will not make the ...
0
votes
0
answers
446
views
On macOS Catalina, what are the default permissions for the /Users folder?
I have done a very stupid thing and, welp...
chmod 755 /Users
Tried googling but I just cannot seem to find any info as to what permissions should this folder have. Scared to break the system while ...
0
votes
0
answers
76
views
chmod having no results in specific folder
I was playing around with setfacl and now I can't access /var/www unless I use sudo. When I try to go to my webserver I get a 403 error.
user@computer:~$ ls -l /var/www
ls: cannot access '/var/www/{...
0
votes
0
answers
1k
views
Google Compute Engine: doing chmod -R 777 /home/user blocks SSH access?
I am trying to setup multiple users on a Google Cloud Instance running Ubuntu 18.04. One of the steps I do, sudo chmod -R 777 /home/user blocks future ssh connexions to the instance, with message:
...
0
votes
0
answers
208
views
Have directory that anyone in a group can chmod from 444 to 777
I have a release area that I (not a super user) manage. Nominally the privileges are 444 (Only read access for myself, group, and everyone). I don't want myself or a group to nominally have write ...
0
votes
0
answers
60
views
Ubuntu 18.04 SFTP with users and one major user
I have an Ubuntu 18.04 system running and want to access this system using SFTP.
I have a lot of users, that shall access /var/ftp/data/%u, additionally, I need a user f_sftp, that can access and read ...
0
votes
1
answer
1k
views
Linux auto chown web uploaded files to users folders
I have a home server that stores my files and I access the files in my internal network with samba. I have 3 users and each user has its home folder on /home/user.
In order to access the files from ...
0
votes
0
answers
904
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 ...