LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-21-2013, 10:46 AM   #1
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 19
Posts: 65

Rep: Reputation: 18
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.
 
Old 01-21-2013, 10:51 AM   #2
Luiz_andrade
LQ Newbie
 
Registered: Nov 2012
Distribution: Debian 6
Posts: 7

Rep: Reputation: Disabled
Bednarjm,

chmod 700 /home/laresa , would do the trick.
 
Old 01-21-2013, 10:56 AM   #3
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
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.
 
Old 01-21-2013, 03:44 PM   #4
Luiz_andrade
LQ Newbie
 
Registered: Nov 2012
Distribution: Debian 6
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by headrift View Post
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!
 
Old 01-21-2013, 08:57 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 13,217

Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
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
-------
 
Old 01-21-2013, 10:12 PM   #6
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
Quote:
Originally Posted by John VV View Post
there is a typo in that
Either works for me. Must be a difference in distros. *shrug*
 
Old 01-21-2013, 11:57 PM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 13,217

Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
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
 
Old 01-22-2013, 12:06 AM   #8
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
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.
 
Old 01-22-2013, 01:05 AM   #9
curious95
Member
 
Registered: Oct 2012
Location: /home/v
Distribution: Slackware 14.0
Posts: 83

Rep: Reputation: Disabled
For further info read the manpage of chmod.
 
Old 01-22-2013, 01:19 AM   #10
bednarjm
Member
 
Registered: Jul 2005
Location: Franklin, PA
Distribution: Fedora 19
Posts: 65

Original Poster
Rep: Reputation: 18
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me change permissions and move my Home folder madhatter64 Linux - Newbie 4 02-06-2008 12:26 AM
Home folder permissions carnold Suse/Novell 5 04-22-2007 11:50 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
accidentally changed permissions on home folder Cinematography Linux - General 7 05-15-2005 05:32 AM
losing permissions on /home folder johnnymo Linux - Software 1 01-25-2005 10:59 PM


All times are GMT -5. The time now is 01:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration