Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 12-19-2007, 12:11 PM   #1
Registered: Apr 2006
Posts: 154

Rep: Reputation: 19
Smile Locking out user - Deskto effects stopped working

Hey folks - I am having a weird issue. I leave my box on for days at a time and yesterday I rebooted because I was moving my PC. When I powered backup I got to the login screen (Core 8 - Gnome) and hit my user name and typed my pass.

I saw the desktop background but then I was quickly logged out.

I could still login as root - and I was able to make another account and that account could login, still could not login with my original account.

Then I changed the session to KDE on my original account and was able to login, when I tried to start any desktop effects - the screen would go black - kill all apps and bring me back to the login screen.

It was all working great prior to the reboot.

Any ideas, thanks in advance.

Old 12-26-2007, 10:28 AM   #2
Registered: Sep 2003
Location: Stroud, UK
Distribution: Kubuntu, Debian
Posts: 149

Rep: Reputation: 15
When you say switched on, was it switched on and logged in?

If it was, then what probably happened is that at some point, the permissions for your user got changed, but had no effect until you logged out (and restarted).

Use the root account to check the permissions and ownership of the home folder for the user that is having difficulty.

If all the files in the user's home folder should be readable, writeable and executable by the user (whom we shall name 'bob') and his group (which will also be called 'bob'), then the following commands should make them all accessible, if run as root. If the ownership is more complicated, then you may need to do it manually.

chown -R bob:bob ~bob
makes bob's home folder [~bob] belong to user:group 'bob:bob'

chmod -R ug+rwx ~bob
makes all files in bob's home folder [~bob] readable, writeable and executable by their owner (who would be bob, because of the last command) and their owning group (bob the group, see above)

If you want to check permissions, without changing them, then run one of these commands:

To check the ownership of all the files in bob's home folder, and highlight any files that do not belong to him and his group.
ls -lR ~bob | grep -v "bob bob"
The first half lists ALL files in bob's home folder, the '|' symbol tells bash to pass the output to the 'grep' command, which takes out all the entries which have a reference to "bob bob" in them, i.e. 'bob' listed as both owner and group.

To find all files where the permissions are not at least readable, writeable and executable to the owner and group, run:
ls -lR ~bob | grep -v "^.rwxrwx"
This works in a similar way to the above, note that it makes no reference to who the owner is. It checks each line, starting from the second character, for 'rwxrwx', which refer first to owner then to group having read, write and execute permissions. The '^.' makes it start at the second character.

Hope this helps.


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
beryl stopped producing 3d effects Linux - Software 3 10-11-2007 03:13 AM
Disabled Desktop Effects Stopped Window Function flebber Linux - Software 6 11-29-2006 10:15 PM
Suse user account stopped working linuxlainen Linux - Newbie 1 10-29-2006 05:41 PM
User Account suddenly stopped working NanoGeek Linux - General 1 12-29-2005 09:29 AM
amarok suddently stopped working with my user negatory Linux - Software 3 04-26-2005 10:16 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:38 AM.

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