LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-27-2016, 10:38 PM   #1
captain rob
LQ Newbie
 
Registered: Oct 2008
Posts: 22

Rep: Reputation: Disabled
Question Black screen with pointer after login. Home with permissions and ownership problems


Using Linux mint 17.3 xfce. I had big trouble. User directory was accidentally deleted. Have most set back from root trash.

After that the login screen complained: $Home/.dmrc file is being ignored. File should be saved by 644 permissions.
Users $Home directory must be owned by user and not writable by other users/

What I did: sudo chown rob /home/rob/.dmrc
chmod 644 /home/rob/.dmrc

I can pass the login now, but get a totally black screen with only a cursor.

I see that some folders and files are still owned by root, others by user but have only read permission


I added another user and that user can login perfectly.

How to solve this problem?
 
Old 09-28-2016, 01:45 AM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,176
Blog Entries: 11

Rep: Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347
Everything in your home directory should be owned by you. Nothing should be owned by root. I suspect that root currently owns your .Xauthority file and that's why X doesn't work.

The command chown -R rob:yourgroup * (as root) will transfer all normal files and directories to you. The -R makes it recursive. For hidden files, something like chown -R rob:yourgroup .[a..zA..Z]* should do it. Unfortunately you can't just use ".*" because that covers the parent directory (..) as well (as I once found out to my cost). btw the home directory itself should also belong to you.
 
Old 09-28-2016, 03:56 AM   #3
captain rob
LQ Newbie
 
Registered: Oct 2008
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thank you for your reply. The first command worked. But cant change the hidden files with chown -R rob:rob.a* for example. I get as reply chown: missing operand after rob:rob.a*.
Do i something wrong?

Last edited by captain rob; 09-28-2016 at 04:10 AM.
 
Old 09-28-2016, 05:47 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 4,176
Blog Entries: 11

Rep: Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347
Quote:
Originally Posted by captain rob View Post
Thank you for your reply. The first command worked. But cant change the hidden files with chown -R rob:rob.a* for example. I get as reply chown: missing operand after rob:rob.a*.
Do i something wrong?
Yes, you missed the space out! The syntax is "chown space user:group space files"
 
Old 09-28-2016, 07:11 AM   #5
captain rob
LQ Newbie
 
Registered: Oct 2008
Posts: 22

Original Poster
Rep: Reputation: Disabled
Thanks, got it. Now the whole directory rob is chowned and could login. Thank you so much.

Last edited by captain rob; 09-28-2016 at 07:21 AM.
 
  


Reply

Tags
home, linux, mint, ownership, 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Black screen with pointer after full mint 17.3 install dukemonleo Linux - Newbie 4 04-22-2016 01:01 PM
Acer Aspire One only boots to black screen with mouse pointer pixian01 Linux - Newbie 13 01-02-2012 03:58 PM
OpenSUSE won't shut down correctly. Black screen, pointer, halts peteyperson Linux - Newbie 13 03-01-2009 05:15 PM
Black screen and pointer for first few minutes after login mike-g2 Linux - General 3 05-01-2008 09:07 AM
Help! Black screen with mouse pointer X duncnz SUSE / openSUSE 9 09-11-2006 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration