Author Topic: <SOLVED> /home/user files inaccessible afer new install  (Read 1513 times)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: /home/user files inaccessible afer new install
« Reply #15 on: February 13, 2012, 04:26:57 PM »
AS,


[root@localhost ~]# ls -l /home
total 36
drwx------ 80 peter peter  4096 Feb 13 14:31 peter/
drwx------ 21 sam   sam    4096 Feb  5 06:48 sam/
drwxr-xr-x  2 root  root  20480 Jan 18 14:11 syn/
drwxr-xr-x  2 root  root   4096 Feb 13 12:59 TERMX/
drwx------  6 root  root   4096 Feb 13 14:46 tmp/
[root@localhost ~]#


peter and sam home directories should be 755 instead of 700. Should be:

drwxr-xr-x 74 peter peter  4096 4096 Feb 13 14:31 peter/



True, that's the PCLinuxOS default, still the user 'peter' have all permission on the directory /home/peter ...

Newlife,

what report the following ?
Code: [Select]
ls -ld  /home

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #16 on: February 13, 2012, 04:30:42 PM »
AS,


[root@localhost ~]# ls -l /home
total 36
drwx------ 80 peter peter  4096 Feb 13 14:31 peter/
drwx------ 21 sam   sam    4096 Feb  5 06:48 sam/
drwxr-xr-x  2 root  root  20480 Jan 18 14:11 syn/
drwxr-xr-x  2 root  root   4096 Feb 13 12:59 TERMX/
drwx------  6 root  root   4096 Feb 13 14:46 tmp/
[root@localhost ~]#


peter and sam home directories should be 755 instead of 700. Should be:

drwxr-xr-x 74 peter peter  4096 4096 Feb 13 14:31 peter/



True, that's the PCLinuxOS default, still the user 'peter' have all permission on the directory /home/peter ...

Newlife,

what report the following ?
Code: [Select]
ls -ld  /home

[root@localhost /]#
[root@localhost /]# ls -ld  /home
drwxr-x--- 75 root root 4096 Feb 13 16:27 /home/
[root@localhost /]#


Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: /home/user files inaccessible afer new install
« Reply #17 on: February 13, 2012, 04:32:46 PM »
try :

EDITED
Code: [Select]
su -
chmod 755 /home

then try to relogin as user 'peter'

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #18 on: February 13, 2012, 04:37:38 PM »
try :

EDITED
Code: [Select]
su -
chmod 755 /home

then try to relogin as user 'peter'


WORKED!!!

Is there a short explanation for my error?

This happened a couple of years ago and I just had to add another user... then copy file over... AND change all permissions.
I started to this time but even the new user would not open.

Newlife

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: /home/user files inaccessible afer new install
« Reply #19 on: February 13, 2012, 04:40:54 PM »
try :

EDITED
Code: [Select]
su -
chmod 755 /home

then try to relogin as user 'peter'


WORKED!!!

Is there a short explanation for my error?

You should know what you have done ... as PCLinuxOS default installation create a /home with permission 755 ...
You need to fix the 'group' of the user 'peter', by default in PCLOS each user default to his own group, probably you have renamed some <user> to 'peter' ...

Quote
This happened a couple of years ago and I just had to add another user... then copy file over... AND change all permissions.
I started to this time but even the new user would not open.

Newlife

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #20 on: February 13, 2012, 04:52:45 PM »
try :

EDITED
Code: [Select]
su -
chmod 755 /home

then try to relogin as user 'peter'


WORKED!!!

Is there a short explanation for my error?

You should know what you have done ... as PCLinuxOS default installation create a /home with permission 755 ...
You need to fix the 'group' of the user 'peter', by default in PCLOS each user default to his own group, probably you have renamed some <user> to 'peter' ...

Quote
This happened a couple of years ago and I just had to add another user... then copy file over... AND change all permissions.
I started to this time but even the new user would not open.

Newlife

THANK YOU, AS--
The users are the same ones I have had for a LONG time, and in control panel they were/are:
peter 501 and sam 500

Every 2 months I make a liveCD.  AND I have tried reinstall from those with no problem.

In my limited knowledge, I thought that as long as I did not disturb the partition with the /home/user files, all I needed to do was install the new operating system and it would access the home area.

Past updates I could start install after booting up with the CD.  I noted the OS must now be installed from the opening list when the CD starts.  There was a choice I was not sure about for the partition with /home.  Maybe I made the wrong choice, I don't know.
Thankfully to you, it works now.

newlife

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: /home/user files inaccessible afer new install
« Reply #21 on: February 13, 2012, 05:02:04 PM »

The users are the same ones I have had for a LONG time, and in control panel they were/are:
peter 501 and sam 500

Every 2 months I make a liveCD.  AND I have tried reinstall from those with no problem.

In my limited knowledge, I thought that as long as I did not disturb the partition with the /home/user files, all I needed to do was install the new operating system and it would access the home area.
True, you can reinstall without formatting /home, therefore saving all your settings and files.


Quote
Past updates I could start install after booting up with the CD.  I noted the OS must now be installed from the opening list when the CD starts. 
That's an addition, you can install directly from grub boot screen, or you can start Live and install from the running system.

Quote
There was a choice I was not sure about for the partition with /home.  Maybe I made the wrong choice, I don't know.
Thankfully to you, it works now.

newlife

I can't think of a plausible explanations for the wrong permission on /home ...

Glad it's solved.  ;)

AS

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: /home/user files inaccessible afer new install
« Reply #22 on: February 13, 2012, 05:05:20 PM »
AS,


[root@localhost ~]# ls -l /home
total 36
drwx------ 80 peter peter  4096 Feb 13 14:31 peter/
drwx------ 21 sam   sam    4096 Feb  5 06:48 sam/
drwxr-xr-x  2 root  root  20480 Jan 18 14:11 syn/
drwxr-xr-x  2 root  root   4096 Feb 13 12:59 TERMX/
drwx------  6 root  root   4096 Feb 13 14:46 tmp/
[root@localhost ~]#


peter and sam home directories should be 755 instead of 700. Should be:

drwxr-xr-x 74 peter peter  4096 4096 Feb 13 14:31 peter/

EDIT: His group membership is wrong, too.

peter:x:501:502:Peter:/home/peter:/bin/bash

Should be peter:x:501:501:Peter:/home/peter:/bin/bash


You need to fix the 'group' of the user 'peter', by default in PCLOS each user default to his own group, probably you have renamed some <user> to 'peter' ...



THANK YOU, AS--
The users are the same ones I have had for a LONG time, and in control panel they were/are:
peter 501 and sam 500


You need to change the group that user peter belongs to. Let's use the GUI to do this. Open PCC (Configure Your Computer). In the left pane, click System. In the right pane, click Manager users on system. Right-click peter and select Edit. Click the Groups tab. Make sure the group peter is checked. Click OK. Close all programs and logout, then login again.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #23 on: February 13, 2012, 07:36:06 PM »
AS,


[root@localhost ~]# ls -l /home
total 36
drwx------ 80 peter peter  4096 Feb 13 14:31 peter/
drwx------ 21 sam   sam    4096 Feb  5 06:48 sam/
drwxr-xr-x  2 root  root  20480 Jan 18 14:11 syn/
drwxr-xr-x  2 root  root   4096 Feb 13 12:59 TERMX/
drwx------  6 root  root   4096 Feb 13 14:46 tmp/
[root@localhost ~]#


peter and sam home directories should be 755 instead of 700. Should be:

drwxr-xr-x 74 peter peter  4096 4096 Feb 13 14:31 peter/

EDIT: His group membership is wrong, too.

peter:x:501:502:Peter:/home/peter:/bin/bash

Should be peter:x:501:501:Peter:/home/peter:/bin/bash


You need to fix the 'group' of the user 'peter', by default in PCLOS each user default to his own group, probably you have renamed some <user> to 'peter' ...



THANK YOU, AS--
The users are the same ones I have had for a LONG time, and in control panel they were/are:
peter 501 and sam 500


You need to change the group that user peter belongs to. Let's use the GUI to do this. Open PCC (Configure Your Computer). In the left pane, click System. In the right pane, click Manager users on system. Right-click peter and select Edit. Click the Groups tab. Make sure the group peter is checked. Click OK. Close all programs and logout, then login again.


Got r done.  Thank you.
Newlife