LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-09-2009, 10:47 AM   #1
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Rep: Reputation: 30
Unhappy User Home Directory now owned bt Root


I am not at all sure what I did. While trying to set-up Samba for sharing files and folders I ended up with root becoming the owner of my user /home/ directory.

How can I fix this mess I made?

Thanks
 
Old 10-09-2009, 10:49 AM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
chown it to your username?
 
Old 10-09-2009, 01:18 PM   #3
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
Unhappy Login error is about sharing

My mistake. I copied the Login Error and it reads:

Quote:
User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by the user and have 644 permissions. User's $HOME directory must be owned by user and not writable by others.
All I can say is HUH??? Does this mean Linux will not allow me to share my directory? If so, why can't the $HOME directory be shared?

That's what I thought sharing was for. So, I would not have to remember a whole bunch of different directories and what was saved where.

So far, the SAMBA HowTo files do not match the default smb.conf file on my system. Even the smb man pages are different than what I see. They refer to sections and settings that don't exist and do not address the settings that do.

So I keep shooting myself in the foot with every change I try. The only thing I have been able to access across the network are my printers.

Every time I try to access the Network I keep being asked for a login and password. Nothing I type in works. I keep getting the error You must login to ****@WORKGROUP for Domain ****. There's got to be an easier way. This is too much like making Vista work with XP computers.
 
Old 10-09-2009, 01:37 PM   #4
Widgeteye
Member
 
Registered: Mar 2005
Posts: 129

Rep: Reputation: 17
I don't use samba but my guess would be it runs as root??? And the root config file can't be in your home directory?
It should be in the /etc dir where most other root config files are stored. But no you can't share your $HOME directory unless you put Samba as a member of you $HOME group. I guess. Hell, I don't know. In 14 years of using Linux I don't beleive I have ever tried to run root programs out of my home directory. Of course if Samba doesn't run as root you can discard all the previous.
 
Old 10-09-2009, 04:52 PM   #5
AndeAnderson
Member
 
Registered: Feb 2005
Location: Pennsylvania
Distribution: Debian (maybe)
Posts: 237

Original Poster
Rep: Reputation: 30
I don't believe I'm trying to run files from the root directory. I am just trying to figure out how to share the files in my User folders.

All I did was change the permissions for access to my '/home/user/' folders to share the files. How else are they shared? Nothing I have tried with Samba has worked. The folders remain unavailable to my Windows Computers.

Thanks
 
  


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
Tiger checks Ubuntu get fail message root directory owned by user argh2xxx Linux - Security 2 10-20-2008 10:33 AM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 06:15 PM
Can you make any files and folders created within a directory owned by another user?? helptonewbie Linux - Newbie 13 12-14-2007 05:21 PM
user access to files owned by root jonfa Linux - General 2 07-09-2007 12:58 PM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 02:26 AM


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