LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-24-2008, 01:34 PM   #1
dody1313
Member
 
Registered: May 2007
Posts: 179

Rep: Reputation: 30
user home directory problem


hi guys
i have strange situation here
before me there was an employe that used to add user's to the sever but i am not sure how, because i cannot see anybody's user directory but they do exist and they are able to log in normally.
for example a user called "mjordan" is able to log an have a mail boxe on /var/mail
but i am not able to find where is his home directory with the command:
'# find / -name mjordan'

also when i try to add it with the command:
useradd -c "Michael Jordan" -d /export/home/mjordan -m mjordan

it says that it already exists to try a new one.
but i can't find mjordan anywhere on export/home.

how can i redirect the user home directory and inbox mail without having him changing password?

thnx
 
Old 04-24-2008, 01:51 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062
Have you just cat /etc/passwd? That's where the home directory for every user is recorded...
 
Old 04-24-2008, 02:22 PM   #3
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
no i didn't
am gonna chekc it out
 
Old 04-24-2008, 04:44 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,776

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Quote:
Originally Posted by dody1313 View Post
but i am not able to find where is his home directory with the command:
'# find / -name mjordan'
I guess the home directories are NFS automounted in /home, the reason why they do not appear with a find at least when the user isn't logged in.
Quote:
Originally Posted by tronayne View Post
Have you just cat /etc/passwd? That's where the home directory for every user is recorded...
Not every user. Entries can also be recorded in the NIS, NIS+ or a LDAP directory server.
 
Old 04-25-2008, 08:28 AM   #5
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
i realize what happened
the user was created without a home directory assigned to
all i did is to use the 'usermod' command -d ( directory)
it's all good now
thnx guy for helping
 
Old 04-25-2008, 11:31 AM   #6
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
i have one more question
i am using apache2 for my web server and running openwebmail.
the index directory is on .../cgi-bin/openwebmail/
on my browser when i put the address as edited on my httpd.conf - servername
i just get the contents of htdocs
so i copied all the /cgi-bin/openwebmail directory to htdocs...but it's just showing the contents again but not the login name page as if i put on the address bar : http://(localhost)/cgi-bin/openwebmail/openwebmail.pl
so basically it's running the perl file to get the login name...
so how can i change the address to have : localhost.com instead of localhost/cgi-bin/openwebmail/openwebmail.pl ?
 
  


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
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 04:12 PM
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 12:40 PM
Cannot find user in home directory shipon_97 Linux - Networking 2 10-15-2006 04:42 AM
jail user to /home/user directory confused_user Linux - Security 12 03-15-2006 09:56 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:02 PM.

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