I am a bit of a noob to linux/unix, but I am trying to set opensolaris server 
to mount a windows share automatically at boot in such a way that access to the 
share is always there when needed. I will be attempting to set up rsynch on the 
solaris server for mirroring to a zfs file system.

what works:
I've set up cifs and I run the commands for mount testing purposes: 
mount -F smbfs //Casey at casey1-vista64/testshare /mnt
then I get a password prompt (I think that is something I configured when I set 
this all up) and I then enter the password to access the share. The mountpoint, 
/mnt, shows up and I can access the contents as a superuser just fine.

what is not working:
I went right to attempting to set up automounting by setting auto_master file 
with this statement: /-   auto_direct
I then set these statements into auto_direct: 
/TEST -fstype=smbfs //Casey:password at casey1-vista64/testshare

in this case:
/TEST is the mountpoint
Casey is the UN
password is the PW
casey1-vista64 is the sharing computer
testshare is the share name on casey1-vista64

pam.conf has these added entries that I pulled from the web:
other password required pam_smb_passwd.so.1 nowarn
login auth optional pam_smbfs_login.so.1

what I want to do:
set this up to where when rsync needs to mirror, the data is always accessible 
via a mount.. (correct me if I am mistaken on how this works). I am doing this 
so as to get around setting up cygwin etc. and letting the server do 
processing/work for me. but first thing is first, [i]getting the mounting to 
work properly[/i]...

It seems that the account credentials in "/TEST -fstype=smbfs //Casey:password 
at casey1-vista64/testshare" are not being authenticated or something bc when I 
attempt to dir the /TEST as a superuser (which in fact does mount) after a 
reboot I get this error: "dir: cannot open directory /TEST: permission denied"

what am I missing and how do I solve this...please be specific as again, I a 
noob. :)


thanks!
-- 
This message posted from opensolaris.org

Reply via email to