Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: installation woes



Shantonu Sen writes:
 > Sweet
 > 
 > The automount daemon is heavily patched in Darwin to remove the AFP  
 > and SMB automounting functionality (which depends on private  
 > frameworks). It's possible a bug crept in that broke NFS automounting  
 > as well.

Here is how I added the mount:

% cat nissetup.sh
#!/bin/sh

sudo niload hosts . < hosts
sudo nicl . -create /mounts/whisper:\\/home
sudo nicl . -append /mounts/whisper:\\/home type nfs 
sudo nicl . -append /mounts/whisper:\\/home opts ""
sudo nicl . -append /mounts/whisper:\\/home dir /home
sudo kill -HUP `cat /var/run/automount.pid`


This leaves me with:

# nidump fstab .
whisper:/home /home nfs  0 0

On MacOSX hosts, this seems to work fine.   I've also tried to start
another instance of automount, pointing to a map in etc.  Eg:

% cat /etc/auto.home
gallatin whisper:/home/gallatin

# automount -f -m /home /etc/auto.home -fstab

No luck with this either.   Maybe I'll just add a startup item to
do the mount in a shell script.  Doing it by hand works fine...

Something is also broken with my account.  What I did to create it was
this (which I also have in a script for adding it to MacOSX machines):

nicl . -create /users/gallatin
nicl . -createprop /users/gallatin uid 1387
nicl . -createprop /users/gallatin gid 0
nicl . -createprop /users/gallatin passwd '*'
nicl . -createprop /users/gallatin change 0
nicl . -createprop /users/gallatin expire 0
nicl . -createprop /users/gallatin realname 'Andrew Gallatin'
nicl . -createprop /users/gallatin home /Users/gallatin
nicl . -createprop /users/gallatin shell /bin/tcsh
nicl . -createprop /users/gallatin _shadow_passwor
passwd gallatin
<....>


But:

[scream:/] root# su - gallatin
su: no directory
[scream:/] root# ls -la /Users/
total 0
drwxr-xr-x    4 root      wheel   136 Jun 22 17:47 .
drwxr--r--   28 root      wheel  1054 Jun 22 17:44 ..
drwxrwxrwt    2 root      wheel    68 Apr 26 15:35 Shared
drwxr-xr-x    2 gallatin  wheel    68 Jun 22 17:47 gallatin

If I ktrace that, I see:
   337 su       CALL  setgid(0)
   337 su       RET   setgid 0
   337 su       CALL  setuid(0x56b)
   337 su       NAMI  "/var/vm/app_profile/56b_data"
   337 su       RET   setuid 0
   337 su       CALL  chdir(0x400a00)
   337 su       NAMI  "/Users/gallatin"
   337 su       RET   chdir -1 errno 13 Permission denied
   337 su       CALL  write(0x2,0x4,0)


I then tried cutting and pasting the exact example at
http://www.opendarwin.org/en/faq/ch02.html#users_groups.  This fails
in the same way:
[scream:/] root# su - bbraun
su: no directory
[scream:/] root# ssh localhost -l bbraun
Password:
Could not chdir to home directory /Users/bbraun: Permission denied
/bin/tcsh: Permission denied
Connection to localhost closed.


Is there a better way to add accounts?

This is not my day :(

Drew
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-x86 mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-x86/email@hidden

This email sent to email@hidden

References: 
 >installation woes (From: Andrew Gallatin <email@hidden>)
 >Re: installation woes (From: Shantonu Sen <email@hidden>)
 >Re: installation woes (From: Andrew Gallatin <email@hidden>)
 >Re: installation woes (From: Shantonu Sen <email@hidden>)
 >Re: installation woes (From: Andrew Gallatin <email@hidden>)
 >Re: installation woes (From: Andrew Gallatin <email@hidden>)
 >Re: installation woes (From: Shantonu Sen <email@hidden>)
 >Re: installation woes (From: Andrew Gallatin <email@hidden>)
 >Re: installation woes (From: Andrew Gallatin <email@hidden>)
 >Re: installation woes (From: Shantonu Sen <email@hidden>)
 >Re: installation woes (From: Andrew Gallatin <email@hidden>)
 >Re: installation woes (From: Shantonu Sen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.