Key file permissions are not correct, should be 600 or 660 instead of 644 [closed] - file-permissions

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Key file permissions are not correct, should be 600 or 660 instead of 644
How can I solve this?

As #avigil and #IliaRostovtsev mentioned on their answers. You have to change the file permisions to 600 or 660 with this instruction:
chmod 600 /filepath
or
chmod 660 /filepath
Why 600 or 660 instead of 644 permissions? Becase:
644 permission means: I (owner) can change it, everyone else can read it.
600 permission means: I (owner) can write and read the file, everyone else can't.
660 permission means: I (owner) can write and read the file. Group members can write and read the file. Everyone else not mentioned above can't.
600 and 660 permissions will add an extra level of security to your files because you won't let "everyone" to read or write on your files
If you have Windows and have trouble with laravel you can check these 2 links which fix this problem:
Passport Laravel
Passport Laravel 2

Setting needed permissions by running in the console on the required file:
chmod 600 /path/to/the/file

Set proper permissions with chmod 600 /path/to/your/keyfile

You should be able to just do: sudo chmod 660 filename

Related

someone ask me but don't know The script install.sh requires elevated permissions [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 months ago.
Improve this question
someone ask me but don't know The script install.sh requires elevated permissions to execute. Which command should be used to set execution permission?
chmod -r install.sh
chmod +x install.sh
chmod 400 install.sh
chmod -R 400 install.sh
chown install.sh
Firstly, the file should be owned by the correct user. If yes, then executing chmod +x install.sh or chmod 755 install.sh should give execute permission to that file

permissons: can't create/delete folder in file manager when www-data is a user [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have permissions issue with www-data (apache) and just a linux user.
In my www folder is wp/
If I set:
sudo chown -R user.www-data wp/
My wordpress shows info it can write to a file, but if I set sudo chown -R www-data.user wp/ then WP works fine, but I can't create/delete folders/files in that directory in a file manager.
I've also added user to www-data group and www-data to user group, but it doesn't help. Still the same problem. What I'm doing wrong and how to solve this?
Try looking into chmod instead of chown.
Also, when using either of those commands, the syntax is user:group.
One solution is to chown -R user:www-data wp/
And then chmod -R 775 wp/
That will give both the user and the group www-data full access to the folder.

chmod ugo+rwx Operation not permited [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am trying to change access rights on tomcat-users.xml file under Linux Mint by:
chmod ugo+rwx tomcat-users.xml
But I'm receiving this error message:
Operation not permitted
tomcat-users.xml has the following permissions and attributes:
$ ls -la tomcat-users.xml
-rw-r-r-- 1 root root tomcat-users.xml
$ lsattr tomcat-users.xml
---------------e--- tomcat-users.xml
What am I doing wrong?
This command is correct is all ways but if there is an issue the, probably you would have been changing permissions of a file from a user(except root) who is not owner of the file.
Or if the owner is root then switch to it.
Or run the command from root.
And still does not work then go for
chmod u=rwx,g=rwx,o=rwx tomcat-users.xml

linux chmod -R 777 /var/ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
By mistake I give via ssh with root privelege a
chmod -R 777 /var/
in stead of
chmod -R 777 var/ for a var folder inside a home directory.
Now I cannot login again via ssh. I have a resque mode availble.
What to do? Does someone this?
First of, twice check your input while in root mode. Then, you need to restore correct permissions in your ~/.ssh folder:
chmod 700 ~/.ssh
chmod 644 ~/.ssh/*
And, also, restore your permissions in /var directory as well:
chmod 755 /var/empty
chmod 755 /var/run

Linux set permission to a folder and all it's sub files or folders [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
i am using fedora and a folder i want to set permission public every one read write
chmod -R 755 /directory
chmod owner group world FileName
and other's but can't work
how i can give public permission to every one one of my folder and every thing under it to other users
thanks
Following two commands will ensure your purpose
chmod -R 755 /directory
chown -R owner.group /directory
This will give read permissions to everyone. You may be facing issue due to wrong ownership. If the file is not very sensitive, you can also use:
chown -R nobody.nobody /directory ( No body means anyone )
use command chmod -R 777 yourdirectory

Resources