/home & /export/home automounting

/home & /export/home automounting

Post by Wayn » Sat, 25 Jun 2005 09:02:21



When a user logs in, their home directory is mounted, but is there a way
to force this to happen at boot time?

Currently, qmail will not deliver, infact it reports "no such mailbox",
if the user has not, and is not logged in.

 
 
 

/home & /export/home automounting

Post by Rich Tee » Sat, 25 Jun 2005 10:39:49



> When a user logs in, their home directory is mounted, but is there a way
> to force this to happen at boot time?

No.

Quote:> Currently, qmail will not deliver, infact it reports "no such mailbox",
> if the user has not, and is not logged in.

WHat are your autmount maps?  ANY attempt to look in /home/user should
result in that user's home directory being automounted, if everytihng
is set up OK.

--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich

 
 
 

/home & /export/home automounting

Post by Wayn » Sat, 25 Jun 2005 14:03:58



>>Currently, qmail will not deliver, infact it reports "no such mailbox",
>>if the user has not, and is not logged in.

> WHat are your autmount maps?  ANY attempt to look in /home/user should
> result in that user's home directory being automounted, if everytihng
> is set up OK.

 From auto_home:
+auto_home
wmjackson solaris:/export/home/wmjackson
posty solaris:/export/home/posty

I can access 'posty' from almost any manual command, but for some reason
qmail cannot get at it.

I have posted a similar question onto the "qmail rocks" board to see if
anyone else has experienced the same thing.

 
 
 

/home & /export/home automounting

Post by Jason Kin » Sat, 25 Jun 2005 14:10:36




>>> Currently, qmail will not deliver, infact it reports "no such mailbox",
>>> if the user has not, and is not logged in.

>> WHat are your autmount maps?  ANY attempt to look in /home/user should
>> result in that user's home directory being automounted, if everytihng
>> is set up OK.

>  From auto_home:
> +auto_home
> wmjackson solaris:/export/home/wmjackson
> posty solaris:/export/home/posty

> I can access 'posty' from almost any manual command, but for some reason
> qmail cannot get at it.

> I have posted a similar question onto the "qmail rocks" board to see if
> anyone else has experienced the same thing.

Have you tried running truss on qmail to see what exactely it's doing
before reporting that error?
 
 
 

/home & /export/home automounting

Post by Wayn » Sat, 25 Jun 2005 18:09:02



> Have you tried running truss on qmail to see what exactely it's doing
> before reporting that error?

I just gave that a go, there is nothing displayed that is helpful.

Based on my Linux installs, I believe it is attempting to write to
"/home/$USERNAME/Maildir".

A quick fix that I have implemented and put in a cron script, and I mean
quick as as in quick and *:
---- start ----
for i in `ls -1 /export/home`
do
   cd /home/$i
done
cd /
---- end ----

It works for the moment, with this being run every 5 minutes, as I
noticed that the automount'er dismounts any inactive user home directory
approx every 10 minutes.

 
 
 

/home & /export/home automounting

Post by sharon » Sat, 25 Jun 2005 18:32:12


it sounds like you are using nis, do you have an /etc/aliases and  file
set up?  I use sendmail, don't know much about qmail.
 
 
 

/home & /export/home automounting

Post by Wayn » Sat, 25 Jun 2005 19:08:22



> it sounds like you are using nis, do you have an /etc/aliases and  file
> set up?  I use sendmail, don't know much about qmail.

I do now.  I noticed that smc relies on /etc/aliases for account
creations, and will not complete the process if sendmail is not installed.

I am, however, not presently utilising NIS - this is something that is
planned at a much later time, the first this was testing if qmail would
run under Solaris, and what issues would be experienced.

What I have done, is removed /home from the automounter, so I can move
the user directories into it, and for the moment it appears that qmail
is working very well.

The next test, I guess, would be to see if I can add users under the new
structure.

 
 
 

/home & /export/home automounting

Post by ronni » Thu, 21 Jul 2005 08:20:43


When a user logs in, their home directory is mounted, but is there a
way

Quote:> to force this to happen at boot time?

> Currently, qmail will not deliver, infact it reports "no such
mailbox",
> if the user has not, and is not logged in.

The shell script below works for me, but that's no guarentee
it''ll work for you!

#!/bin/sh
PATH=/var/qmail/bin:${PATH}
export PATH
cd /var/qmail
[ -d users ] || mkdir users
cd users
ypcat passwd > passwd
(for x in `cut -d : -f 6 passwd`; do cd $x;done)
qmail-pw2u -h < passwd > assign
qmail-newu

run it every time you change your NIS passwd file.

The for loop is just to force the automounting of
all the homedirectories before creating the assign file.
Check out the qmail-pw2u and qmail-newu man pages.

 
 
 

/home & /export/home automounting

Post by dac.. » Thu, 21 Jul 2005 22:37:15


set the home directories to mount via the /etc/vfstab file instead of
using automounter
 
 
 

1. /export/home wont automount to /home

I changed /etc/auto_home to:

user curhostname:/export/home/username
and commented out the + auto_home line.

automount -v appears to do nothing.../home remains empty

Do I have to also change one of the other files?
--
To prevent bouncing, remove the SPAS from enigSPASmatic.com

2. OakTree SVGA card (Xconfig)

3. /home and automount maps with many home directory servers

4. FTP site for boot diskettes?

5. /home/username [was Re: Automount, /home,

6. FTP Shutdown, how to restart

7. /home (AIX) and /export/home (Solaris)

8. setjmp/longjmp and gcc warning

9. Why Solaris use /export/home instead of /home?

10. /home and /export/home

11. /home vs. /export/home?

12. jlg058@home.com, tlg62@home.com, egglectric@home.com

13. Help with multi-homed server & automount