LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-09-2006, 04:23 PM   #1
paulBottomley
LQ Newbie
 
Registered: Oct 2005
Location: Canterbury, UK
Distribution: Fedora Core 4
Posts: 12

Rep: Reputation: 0
"Operation not permitted" error logging in to Ubuntu Dapper Drake


Hi there, I'm fairly new to all this Linux business, Ubuntu doubly so, so I hope this is the right place to post this.

Whenever I try to log on, I think it does actually log me in, but then instantly logs me out again, dumping me back at the log in screen. This is what it says:

Quote:
Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of disk space. Try logging in with one of the failsafe sessions to see if you can fix this problem.
Now, I know I'm not out of disk space, and I don't want to have to reinstall if I can help it. Here's the output it generated on the same message box:

Quote:
/etc/gdm/PreSession/Default: Registering you session with wtmp and utmp
/etc/gdm/PreSession/Default: Running: /usr/bin/sessreg -a -w /var/run/utemp -x "/var/lib/gdm/:0.Xservers" -h " " -l ":0" "[username]"
/etc/gdm/Xsession: Beginning session setup...
Could not set mode 0700 on private per-user gnome configuration directory `/home/paul/.gnome2_private/': Operation not permitted.
So I tried logging in at a failsafe terminal, and, as root, started X up. I guess I can't tear myself away from the GUI That gave me this message, which might very well be because I'm in a failsafe mode, I suppose, but I'll include it in case it's important:

Quote:
Power Manager
This program cannot start until you start the dbus system service.
It is strongly reccomended you reboot your computer after starting messagebus.
I tried making .gnome2_private writable to all, which I know was a silly idea, but that just got me another error message before the first telling me it shouldn't be writable. That seems to conflict with the idea that it needs to perform an operation on it, but that's why I'm the noob and you guys are the experts.

I have no idea how to make it work, any advice is greatly appreciated, thank you
 
Old 08-09-2006, 04:37 PM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
why not trying just to make it xritable only by the user?
chmod 700 .gnome2_private (as it seems to be trying to do)
 
Old 08-09-2006, 04:47 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
Did you try to make /home a FAT partition? That "Operation Not Permitted" error is exactly the sort of error that would occur with a FAT partition because FAT doesn't support Unix style file permissions (like "700").

You need to make /home an ext3 or some other *nix style file system (like XFS, ReiserFS, etc.).
 
Old 08-09-2006, 04:55 PM   #4
paulBottomley
LQ Newbie
 
Registered: Oct 2005
Location: Canterbury, UK
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks guys,

I tried what you suggested, Agrouf, and felt like a bit of a fool when I read it :P
But alas, it comes up with the exact same message.

IsaacKuo, the drive is ext3, though I should probably have already mentioned, it's a seperate partition which already had quite a lot of stuff on it before I installed Ubuntu. I'm rather glad I didn't make it FAT32 now, as the thought did cross my mind when I made it
 
Old 08-10-2006, 05:00 AM   #5
paulBottomley
LQ Newbie
 
Registered: Oct 2005
Location: Canterbury, UK
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
Anyone else want to have a crack at it? At all?
Or should I just go back to FC? That worked okay, at least it let me log in.
 
Old 08-10-2006, 07:16 AM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
If you're using an already existing /home, and the rest of the Ubuntu install was a clean install, then I'm guessing that the old /home had some different user and/or group numbers. Try doing this:

cd /home
sudo chown -R myuserid:mygroupid myuserid/

This will force everything in your home directory to be owned by you.
 
Old 08-10-2006, 10:45 AM   #7
paulBottomley
LQ Newbie
 
Registered: Oct 2005
Location: Canterbury, UK
Distribution: Fedora Core 4
Posts: 12

Original Poster
Rep: Reputation: 0
Sorry to be a thickie, but... What are my userid and usergroup?

In any event, I solved the problem the nooby way of just reinstalling Ubuntu and mounting that partition as something other than /home. Now you're probably going to tell me I didn't need to reinstall, but at the time, after yonks of Windows-ness, it semmed logical :|

Thanks for all your help

Last edited by paulBottomley; 08-10-2006 at 10:57 AM.
 
Old 08-10-2006, 11:13 AM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
In Linux as well as other Unix-like operating systems, each user and group is assigned numbers. On the ext3 file system, the owning user and group is stored by number, rather than name. If you install a new OS, the default user/group numbers might not be the same.

If you do a detailed file listing with "ls -l", then it will show the user:group by name, but the underlying data is actually the number. (It will actually only show the name if that number corresponds to an existing user/group. If not, then it will show the number.)
 
  


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
"creating symbolic link" "operation not permitted" wheni Linux - Newbie 3 05-08-2011 01:36 AM
"setgid:Operation not permitted" after shadow install proRandom Linux From Scratch 3 10-21-2010 10:48 PM
hdparm -d1 /dev/hda gives me "HDIO_SET_DMA failed: Operation not permitted" elluva Linux - Hardware 7 07-21-2007 03:49 AM
"Preserving time: operation not permitted" on fat32 on debian ac1980 Debian 10 01-15-2007 08:12 PM
"ioctl: Operation not permitted" (beep media playe) unholy Linux - Software 1 12-18-2004 06:14 PM


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