Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [chmod]

The `chmod` command is used to adjust file permissions to read, write and execute for the owner, group and others.

Filter by
Sorted by
Tagged with
2 votes
1 answer
34 views

accidentally ran sudo chmod 700 /* [duplicate]

i accidentaly ran " sudo chmod 700 /* ", is there a way to undo this..? i have no idea what to do. I am on Ubuntu 22.04 desktop amd64
user avatar
1 vote
0 answers
30 views

root ownership after mounting a drive with ext4 format

I have formatted with ext4 format by GParted: (1) an USB flash drive and (2) an external hard drive. So far so good, but now they have root ownership and non edit permissions. I can update the ...
user avatar
  • 381
0 votes
0 answers
22 views

chmod setting using find command not working

root@VM01:~# find /var/log -type f | xargs chmod g-wx,o-rwx chmod: cannot access '/var/log/journal/11a7df635f034e01b3405209ca9f4260/system.journal': No such file or directory it is working without ...
user avatar
  • 101
0 votes
0 answers
59 views

How do I permanently change permissions for /dev/ttyS0 on Ubuntu 22.04?

I'm running a Ubuntu 22.04 and i'm trying to read a /dev/ttyS0 serial port. If i execute the following command, i can read it without problems: chmod 777 /dev/ttyS0 But after a reboot, the ...
user avatar
0 votes
1 answer
38 views

How can I give permissions for folders in Linux?

I have to create company/lawyers Company/accountants Company/users/Tim Company/users/Mike Company/users/Rob Company/users/Ann I also have to give permission to make changes for company only to root, ...
user avatar
  • 1
1 vote
1 answer
47 views

linux I want to add permission on two groups

I have my owner (Pierre) and he has all permission on g586 folder, I have my first group (G586) have read permission, I have another groupe name (teacher) have read and execute permission, and other ...
user avatar
0 votes
1 answer
255 views

File permissions are not changing using the chmod command [duplicate]

I want to transfer files from my PC to an external HDD. I tried all the chmod commands but they are not changing file permissions. The GUI settings are also not working. My external HDD is NTFS.
user avatar
0 votes
0 answers
66 views

Getting error "Permissions 0777 for 'myname-2.pem' are too open" while connecting to AWS EC2 instannce

Why connecting to Amazon instance, I got following error: $ ssh -i "myname-2.pem" ec2-user@ec2-12-245-65-0.ap-south-1.compute.amazonaws.com @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...
user avatar
  • 179
1 vote
1 answer
83 views

I accidentally did chmod wrong and some commands show permission denied

I wanted to set chmod 644 to some files in my ubuntu like this sudo chmod 644 ./* but I accidentally did sudo chmod 644 /* It has corrupted my ubuntu, some commands start show permission denied. The ...
user avatar
0 votes
1 answer
153 views

I accidentally ran sudo chmod -R 777 /home/

I accidentally executed: sudo chmod -R 777 /home/ Is there any way to recover from this?
user avatar
0 votes
1 answer
183 views

Unable to change permissions and user:group of SMB mounted directory

I have a trueNAS SMB mount to a Proxmox VM directory. The mount works fine however, in order for services to automatically move files from one part of the same directory to another, I need to remove ...
user avatar
0 votes
1 answer
51 views

Will I break things if I use "sudo chmod -R u=wrx {user}"?

I am new to linux and Ubuntu. I am learning the terminal and want to set up my userspace as secure as possible. I have multiple users and some have access to files of other users. I want to make sure ...
user avatar
1 vote
1 answer
535 views

How do I set permissions to use Docker with my normal user? [duplicate]

I use Ubuntu 20.04 and I use docker to run images. When I installed and ran the docker command for the 1st time, the following error occurred in the shell. Got permission denied while trying to ...
user avatar
  • 13
1 vote
0 answers
24 views

running series of commands gives other result than running them on script [duplicate]

this is the script: #!/bin/sh rm -rf git/ mkdir -p git/{c,ds/{include,test},projects,quizzes,system_programming} find git/ -type d -exec touch {}/dummy.md \; This is the wanted result: git/ ├── c │   ...
user avatar
  • 11
7 votes
1 answer
1k views

After installing youtube-dl on Ubuntu 21.10 with the instructions on github many applications, including default text editor, broke

A new user here, running ubuntu on version 21.10 impish. I was installing youtube-dl with the instructions on the github page (https://github.com/ytdl-org/youtube-dl#installation): $ sudo curl -L ...
user avatar
  • 73
1 vote
1 answer
53 views

Permissions makes libreoffice go in a crash-loop when opening from terminal

I am having some permission issues with libreoffice that I just don't have the technical provess to understand. ISSUE when I run localc directly from terminal, it goes into a loop: the program crashes ...
user avatar
  • 204
0 votes
1 answer
189 views

Not able to to delete file with drwx--S--- permission

We are not able to delete file because of special permission drwx--S---. I have tried command chmod g -s filenameion but we cant use root user. SO is there anyway to delete
user avatar
1 vote
0 answers
24 views

A new folder is created with default setgid bit set to S

I have two Ubuntu servers, both with umask 0002. On one of them, whenever I created a new sub-folder in a folder named public, the new sub-folder has the setgid bit set to S. On the other machine, it ...
user avatar
0 votes
0 answers
49 views

cannot excute shell script with permission denied

I tried to run shell script file fin.sh: 1: fin.sh: cannot create fin.log: Permission denied I tried to sudo chmod u+x fin.sh but still got the same error
user avatar
  • 1
0 votes
1 answer
108 views

Enter recovery mode in headless ubuntu setup?

I know, there are lots of posts about this to enter recovery mode etc. But I have a raspberry running headless ubuntu server, and sadly I have no keyboard or monitor to connect to it. So what I did is:...
user avatar
0 votes
0 answers
39 views

edit chmod for youtube-dl [duplicate]

I'm still learning my way around linux. I tried installing youtube-dl following these instructions https://itsfoss.com/download-youtube-linux/ When I got to sudo chmod a+rx /usr/local/bin/youtube-dl I ...
user avatar
  • 11
2 votes
1 answer
93 views

Setting the permissions on all files inside a folder without changing the permissions of the folder itself?

I have a folder called my_files. I want to: set the permissions to allow all users to read, write and execute the folder and set the permissions on all files inside my_files to allow all users to ...
user avatar
  • 121
0 votes
0 answers
17 views

Add files to lhz archive with file attributes

for a legacy application, I need to create an ancient lzh archive, which needs to retain the file permissions set with chmod. Under Ubuntu, I found that there is the jlha package is available for ...
user avatar
  • 103
0 votes
0 answers
1k views

Couldn't Display [program] -- No application installed for "shared library" files

I think the problem is -- to Ubuntu, it doesn't seem that some of the files are executable at all or rather it doesn't know its file to type. The Files Manager due to which instead of showing the ...
user avatar
0 votes
1 answer
511 views

Permission Denied When Running Shell Script

I'm using Ubuntu Server 20.04 LTS. When I run a shell script, I get the following error: -bash: ./install.sh: Permission denied. I've looked at a similar post on this forum and none of those answers ...
user avatar
0 votes
1 answer
55 views

Ubuntu Permission Change Error [closed]

I Recently Installed Ubuntu Mate And Used Ubuntu As Desktop Environment I've Faced A Problem OF Copying/Creating A new Dir I've used The Both Of sudo mount -o remount, rw chmod to Change The rw ...
user avatar
1 vote
1 answer
280 views

Do I need to use both chown nobody:users and chmod 755

In the command line chown nobody:users /mnt/user/A && chmod 755 /mnt/user/A can I use only chmod 755 /mnt/user/A to give access to anyone or do I need both to make it fully accessible for ...
user avatar
0 votes
0 answers
32 views

How do I reverse chmod 777? [duplicate]

While trying to fix mySQL I seem to have made a huge mistake running sudo chmod -R 777 / var/lib/mysql which seemed to have change everything to green folder instead of purple and now even files like ...
user avatar
0 votes
0 answers
5k views

sudo chown command fails to give ownership to user account

I have tried running sudo chown dendy /mnt/storage1/ which returns chown: changing ownership of '/mnt/storage1/': Operation not permitted I have also tried sudo chmod 777 /mnt/storage1/ which does not ...
user avatar
  • 1
0 votes
1 answer
177 views

What are default permissions or configuration? Revert chmod 777

I am new to Ubuntu and Linux, and appear to have made a mistake. I was currently logged in as root and was encountering a permission issue in my python file where I could not create a file when using ...
user avatar
  • 141
0 votes
1 answer
149 views

Shortcut to program installed via binary installer

I'm looking for a little help with Ubuntu 18.04. I installed a program using the below terminal commands: su "password" cd Documents chmod +x WatchPower64.bin ./...
user avatar
1 vote
1 answer
4k views

chmod: Operation not permitted

how can change my folder permissions? I also tried it as root but it did not work and I also cannot change the ownership. root@darkmark:~# pwd /root root@darkmark:~# sudo chown -R darkmark '/home/...
user avatar
0 votes
1 answer
777 views

What does "sudo chmod -R 777 /" do? [duplicate]

I did sudo chmod -R 777 / on our production server and everything got messed up. The hosted sites and API's stopped working, SSH said connection refused, it was a cyberpanel running cent os 7 and we ...
user avatar
2 votes
1 answer
236 views

Ran chmod 764 /usr folder

I ran sudo chmod 764 /usr and then my laptop rebooted, now I can't open Ubuntu login screen anymore. Help me please. Edit: I solved it! Boot in recovering mode and then open root console. I wrote ...
user avatar
  • 1,373
0 votes
0 answers
2k views

sudo chmod 755 [file]: operation not permitted!

I wanted change the permission of a file that I own previously, so I typed: $ sudo chmod 755 [file] [sudo] password for rakinar2: sudo: chmod: Operation not permitted How do I fix this issue? I'm ...
user avatar
  • 101
0 votes
0 answers
26 views

Why doesn't chmod work in my bash script? Error is something about the directory...? [duplicate]

Script is this: #!bin/bash echo "setpriv start" chmod u=rwx ./ * echo "setpriv end" Output in bash window is this: robertk@HP_2013:~$ bash -x setpriv ' echo 'setpriv start setpriv ...
user avatar
0 votes
1 answer
580 views

Permission denied for genesis.json file

I am having an issue with the persmission of the genesis.json file. I tried to fix it with chmod, but it sadly didnt help. Anyone knows how to fix this issue? Also same issue for my config.toml: ...
user avatar
0 votes
0 answers
22 views

how to use the 's' parameter in chmod

Ubuntu 20.04 I have installed Apache2 and it has setup the document root with owner www-data and group www-data. I do not understand the permission option "s" in the "rwxXst" ...
user avatar
  • 31
0 votes
1 answer
1k views

Always get permission denied on tar. cannot mkdir: permission denied on my kafka installation

basically this is my question in stack overflow but not answered yet https://stackoverflow.com/questions/67708710/always-get-permission-denied-on-tar-cannot-mkdir-permission-denied-on-my-kafka so i ...
user avatar
0 votes
2 answers
130 views

I happend to chmod 755 my whole /usr/ dir [duplicate]

I happend to change my whole /usr/ dir files to -rwxr-xr-x with command "sudo chmod 775 -R /usr/" now I firguire out that some special binary files like "su" "chkpaswd"...
user avatar
2 votes
0 answers
52 views

Can't Apply Changes to Permissions Within a Folder's Enclosed Files in Ubuntu

Issue with the GUI I'm using Ubuntu 16.04 LTS. I am trying to allow all enclosed Files and Folders to have full Read and write access as well as Create and delete files. Currently, it is set to Read ...
user avatar
  • 21
0 votes
2 answers
96 views

Why did adding read permissions recursively to /etc break ssh?

For reasons I am too embarrassed to share, I ran this command as root on a remote server: chmod a+r -R /etc Once I logged out of the SSH session, I was not able to SSH back in: $ ssh myusername@<...
user avatar
0 votes
0 answers
97 views

After chown 777 to the folder, it is still blocked

chmod chmod -R 777 /media chmod -R 777 /media/guoyi chmod -R 777 /media/guoyi/pc Then it is still blocked and I use ln -s /media/guoyi/pc/x /home/guoyi/desktop Then the link is also blocked. What's ...
user avatar
0 votes
0 answers
48 views

FAT32 change permisssion [duplicate]

error setting permissionhi when i format micro SD card to fat32 and after that copying executable file to SD card , permission of file that sent changes to read only and can not be executed even i ...
user avatar
  • 1
0 votes
1 answer
107 views

Weird permissions after sudo chmod

On Ubuntu 20.10. When I run something like: sudo chmod -R +766 /etc/apache2 I end up with permissions that do not allow my user (in group "other") to access the files in /etc/apache2. When ...
user avatar
0 votes
2 answers
1k views

is it possible to create symbolic links on exfat filesystem?

I cannot even change permissions with chmod 777 that on one hand returns no error but on the other does not change the permissions either. File system is exfat. But my issue is inabililty to create ...
user avatar
  • 198
1 vote
1 answer
315 views

understanding chmod

image link -chmod permission for user I am trying to understand different permission for text file in linux , please refer the image i have attached. i want to ask two question. 1- when the text file ...
user avatar
0 votes
2 answers
120 views

Can I prevent myself from deleting a file?

It seems logical that a user ought to be able to tell himself that he is not allowed to delete a file under his own ownership. I'd like to take away my own permission to delete a file. Can I do this ...
user avatar
0 votes
1 answer
67 views

change permission folder and underliyng folders chmod 553 to 555

i am helping a friend of mine setting up his nas remotely, unfortunately it seems the ftp program i use for this doesn't have access to some folders as permissions are set to chmod 553. unfortunately ...
user avatar
1 vote
2 answers
156 views

why is chmod -rwx not removing all the permissions on my private key file, the answers here that I have seen did not help me?

chmod -rwx prac1 abayomi@AbayomiUsman:~/.ssh$ ll | grep prac1 -r-xr-xr-x 1 abayomi abayomi 2655 Feb 18 15:55 prac1* -rwxrwxrwx 1 abayomi abayomi 574 Feb 18 15:55 prac1.pub* abayomi@AbayomiUsman:~/....
user avatar

1
2 3 4 5
12