Questions tagged [chmod]
The `chmod` command is used to adjust file permissions to read, write and execute for the owner, group and others.
587
questions
0
votes
1
answer
986
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
1
vote
0
answers
38
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 ...
0
votes
0
answers
248
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
0
votes
1
answer
712
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:...
0
votes
0
answers
40
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 ...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
6k
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
71
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 ...
1
vote
1
answer
2k
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 ...
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 ...
1
vote
0
answers
9k
views
sudo chown command fails to give ownership to user account [duplicate]
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 ...
0
votes
1
answer
2k
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 ...
0
votes
1
answer
579
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
./...
2
votes
1
answer
13k
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/...
0
votes
1
answer
2k
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 ...
2
votes
1
answer
447
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 ...
0
votes
0
answers
5k
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 ...
0
votes
0
answers
30
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 ...
0
votes
1
answer
1k
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:
...
0
votes
1
answer
4k
views
Always get permission denied on tar. cannot mkdir: permission denied on my kafka installation [duplicate]
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 ...
0
votes
2
answers
381
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"...
2
votes
0
answers
188
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 ...
0
votes
2
answers
425
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@<...
0
votes
0
answers
524
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 ...
0
votes
0
answers
90
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 ...
0
votes
1
answer
324
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 ...
3
votes
3
answers
7k
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 ...
1
vote
1
answer
760
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 ...
1
vote
2
answers
926
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 ...
0
votes
1
answer
523
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 ...
1
vote
2
answers
322
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:~/....
0
votes
1
answer
158
views
CHMOD and how the permissions thing works? [closed]
So I got few questions about CHMOD and permissions in general.
I know there are 3 groups:
user(the creator of the file, the admin user (?) )
groups
others
My questions are:
Can I create more than 1 ...
1
vote
1
answer
16k
views
What does a "No such file or directory” mean and How do I correct the problem?
I read in Stack Exchange that the message I am getting, "No such file or directory” refers to not being in the directory where the file I need resides. The article suggested using “cd" to ...
0
votes
1
answer
660
views
What are the proper chown and chmod syntax?
I am trying to change ownership of a file/directory and seem to be doing something wrong, is it my syntax or...what?
michael@michael-desktop:/media/michael/Films$ ls -l
total 1536
drwxr-xr-x 2 michael ...
0
votes
1
answer
4k
views
chmod changing permissions of Read-only file system
I have this error when i try to use chmod 777 -R to make a mounted harddrive writable and readable.
chmod changing permissions of <some file> Read-only file system
My fstab looks like this:
UUID=...
1
vote
0
answers
167
views
Watched app make Lubuntu 18.04 stuck
I tried installing watched app (download from here)
I ran below code:
chmod +x WATCHED-1.0.8.AppImage
./WATCHED-1.0.8.AppImage
When the app appears, my Lubuntu 18.04 LTS stuck and I don't know why. ...
0
votes
0
answers
181
views
How do I create persistent executable files?
I have created a script file called restart-services.sh and made it executable using chmod +x.
I run it to restart some services by simply double clicking on it and selecting run.
However, if I copy ...
0
votes
0
answers
410
views
Accidentally ran a chmod command on the "/" root directory
I accidentally ran a
sudo find -type f -exec chmod 664 {} \;
on the root directory of my server as I was logged in from a sudo user
I rebooted the server which seems to still be running fine, I also ...
0
votes
2
answers
1k
views
How to make txt, csv and pem files read and writable only by root with sudo previliges?
I have some files inside a folder with various formats like .txt, .pem, .csv and .json.
I want only sudo/root to be able access them. I have done
chmod 700
and
chmod 600
on each of those files. But, ...
0
votes
1
answer
165
views
Backing up Thunderbird from one laptop to another with RSync?
I installed Ubuntu on another laptop that I want to back up to.
I run this:
ole@mkt:~$ rsync -vaz /home/ole/.thunderbird [email protected]:/~
[email protected]'s password:
sending incremental file list
...
1
vote
1
answer
742
views
User, Group and Other in the chmod command
I think I basically understood the point with the seven levels of authorization with the chmod command. However I'm not sure what is meant by user, group and other.
What's the difference between ...
0
votes
2
answers
25k
views
How to give a specific user a read ONLY permission to a specific folder in Linux without root?
I want to give a specific user with the username userA permission to only read a folder that I created.
Every other post that I found says you should either create a new group, which I cannot because ...
1
vote
1
answer
260
views
Grant writing permission to /snap devices
I installed blender with snap and I want the app to use blender's numix-circle-icon so I tried to replace /snap/blender/47/blender.svg but I have this error with sudo:
File systeme is only readable I ...
11
votes
1
answer
2k
views
What does the final "+" mean after the user/group/others rwx permissions
How do you modify or eliminate the "+" symbol?
Example:
(directory)rwxr-x---+
0
votes
1
answer
76
views
Where to mount HDD partitions? Who is the owner?
The primary SSD in Ubuntu is mounted at FileSystems root.
Where do I mount the additional HDD that I have in my system? Is /media/<NewDirectory> the right place?
Who should be the owner of this ...
0
votes
1
answer
755
views
Accidentally Set All Files in /home/(userName) to 755
I recently installed Ubuntu on a personal computer and I am the only user. I am having this issue where every time I save something to the Desktop the icons rearrange. (I still have not solved this ...
-1
votes
1
answer
199
views
Give permission to folder only to root and owner in BASH
I am looking for a confirmation. I still do not understand chmod command.
What I want is to give permissions to root and owner to a folder in a supercomputer cluster.
My first approach would be: ...
0
votes
4
answers
2k
views
Chmod 600 issue
My situation is I was using terminal for ssh did the chmod 600 / then I did the ~. Stopped me from going into files rebooted and stuck atlogin screen where type password blink black screen then login ...
1
vote
1
answer
1k
views
how to chmod a dir from root's crontab
Root's crontab -e has the lines
@reboot mkdir -p /tmp/vimbackups
@reboot chmod 777 /tmp/vimbackups
@reboot anotherCommand
After boot, the directory has been made, but it still has the default 755 ...