LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-19-2008, 12:25 AM   #1
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Rep: Reputation: 39
cant login after editing partitions


i wanted to add a couple more partitions to my HDD but i already filled up my partition table, so i coppied my /home partition to an extended partition and added the rest of my partitions but now i cant login,
this is my partition table, mtab output and error message
Code:
root@person1873-laptop:~# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xba9d1b9e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1311    10530576   83  Linux
/dev/sda2            1312        8570    58307917+   5  Extended
/dev/sda3            8571        9207     5116702+  83  Linux
/dev/sda4            9208        9729     4192965   82  Linux swap / Solaris
/dev/sda5            1312        8570    58307886   83  Linux
Code:
/dev/sda1 / ext3 rw,relatime,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda5 /home ext3 rw,noexec,nosuid,nodev,relatime 0 0
/dev/sda3 /tmp ext3 rw 0 0
securityfs /sys/kernel/security securityfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0
Code:
/etc/gdm/Xsession: Beginning session setup...
Setting IM through im-switch for locale=en_AU.
Start IM through /etc/X11/xinit/xinput.d/all_ALL linked to /etc/X11/xinit/xinput.d/default.
mkdtemp: private socket dir: Permission denied
could someone please tell me whats goin on?

Last edited by Person_1873; 07-19-2008 at 12:44 AM.
 
Old 07-19-2008, 05:26 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Is root able to log in? I am guessing that you obtained the information in your post by logging in to the root account. If that's the case then we know that the login process is fundamentally okay but normal users cannot log in.

There is a setting which enables/disables normal user login if the user account cannot access its $HOME directory. It is possible that the permissions on the /home directory prevent normal users to see through it to their $HOME directory. Check the ownership and permission settings at the top level of /home. They are typically root:root 755.
 
Old 07-19-2008, 10:36 AM   #3
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Original Poster
Rep: Reputation: 39
yea, those permissions are fine, it doesn't auto-create a .Xauthority file if i delete the account and remake it
 
Old 07-19-2008, 02:06 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
This failure to create an .Xauthority file may be due to file permissions on the $HOME directory. If the account name is "normal" then see if the ownership and permissions are okay for its home directory at /home/normal. They should be normal:users 750. The important number there is the 7 at the beginning of the permission string. The other two numbers can be different.
 
Old 07-19-2008, 09:01 PM   #5
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Original Poster
Rep: Reputation: 39
how do i get that printout?
 
Old 07-21-2008, 06:52 PM   #6
Person_1873
Member
 
Registered: Sep 2007
Location: Australia
Distribution: Arch Linux
Posts: 489

Original Poster
Rep: Reputation: 39
all the permissions are correct, everything is owned by the right users, could it be because it's on an extended partition rather than a primary partition? it's easy enough to fix if that is the case!
 
Old 07-21-2008, 09:12 PM   #7
zer0python
Member
 
Registered: Sep 2003
Posts: 83

Rep: Reputation: 17
Cool

Not sure, but a quick google search responded that it was because /tmp was not world writable, try:

Code:
chmod 5777 /tmp
see if that fixes your problem.
 
  


Reply

Tags
login, partitions, permissions


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
Editing my partitions sudarshan22 Ubuntu 2 06-07-2008 10:07 PM
Editing Partitions Using Live Disc... TelQuel Ubuntu 3 06-05-2008 07:20 PM
Login screen editing!! SpiderIRE Linux - Newbie 1 01-28-2005 04:16 PM
Editing last login of SSH adamrad Linux - General 1 03-01-2004 06:41 AM
Editing NTFS and FAT32 partitions under linux? eire Linux - Hardware 2 12-07-2003 06:54 PM


All times are GMT -5. The time now is 10:50 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