LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   user home directory problem (https://www.linuxquestions.org/questions/solaris-opensolaris-20/user-home-directory-problem-637589/)

dody1313 04-24-2008 01:34 PM

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

tronayne 04-24-2008 01:51 PM

Have you just cat /etc/passwd? That's where the home directory for every user is recorded...

dody1313 04-24-2008 02:22 PM

no i didn't
am gonna chekc it out

jlliagre 04-24-2008 04:44 PM

Quote:

Originally Posted by dody1313 (Post 3131727)
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 (Post 3131741)
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.

dody1313 04-25-2008 08:28 AM

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

dody1313 04-25-2008 11:31 AM

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 ?


All times are GMT -5. The time now is 05:13 AM.