LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   how to change permissions for home folder (http://www.linuxquestions.org/questions/fedora-35/how-to-change-permissions-for-home-folder-4175446599/)

bednarjm 01-21-2013 10:46 AM

how to change permissions for home folder
 
how to change permissions so that

drw-r--r--. 27 1002 1002 4096 Jan 16 14:01 /home/laresa/

looks like
drwx------. 48 jaison jaison 4096 Jan 21 10:07 /home/jaison/

I recently installed F18 and kept the same /home partition.

I could get into mine during the install, but when i re-added her account she cant login through X. So I'm thinking it has something to do with the permissions not being able to execute, but i cant for the life of me think how to change it haha Please help.

Luiz_andrade 01-21-2013 10:51 AM

Bednarjm,

chmod 700 /home/laresa , would do the trick.

headrift 01-21-2013 10:56 AM

The owner might be wrong too. Is 1002 laresa's user ID? If not:

Code:

chown -R laresa.laresa /home/laresa
...which will change the owner on /home/laresa and all files and directories below it.

Luiz_andrade 01-21-2013 03:44 PM

Quote:

Originally Posted by headrift (Post 4874737)
The owner might be wrong too. Is 1002 laresa's user ID? If not:

Code:

chown -R laresa.laresa /home/laresa
...which will change the owner on /home/laresa and all files and directories below it.

Indeed!

John VV 01-21-2013 08:57 PM

Warning:
by running "chnmod 700 " you might not be able to log in


Fedora checks to make 100% sure that the file permissions ARE RIGHT and SELinux also checks it .

if you mess up your home file permissions you might not be able to log in

This is a SAFETY MEASURE TO PROTECT YOU and your system

Quote:

chown -R laresa.laresa /home/laresa
there is a typo in that
it should be this -- with a " : " and NOT a " . " and "users"
-----
chown -R laresa:users /home/laresa
-------

headrift 01-21-2013 10:12 PM

Quote:

Originally Posted by John VV (Post 4875029)
there is a typo in that

Either works for me. Must be a difference in distros. *shrug*

John VV 01-21-2013 11:57 PM

the "group" should not be laresa it should be "users"

unless the "laresa" group is a special group with many many many users on the computer

headrift 01-22-2013 12:06 AM

It sounds like the OP wants to chmod it 700, which indicates no other users will be in that directory. So, a more restrictive permission set would seem to be desired. Also, it looks like both user and group are the same number, suggesting that they are the same.

curious95 01-22-2013 01:05 AM

For further info read the manpage of chmod.

bednarjm 01-22-2013 01:19 AM

Thanks for everyone's input.

First i used chmod 700 but that was a no-go.

Then i did chown -R laresa /home/laresa and after a restart i was able to log in.


All times are GMT -5. The time now is 06:33 PM.