Vivek Joshi's Weblog

Tuesday Nov 25, 2008

Making NAS out of Solaris (Part 2)


It has been a while I resumed .. No excuses.



  • Once we have created the CIFS share (as per previous entry), we need to do some jugglery  around authentication.


    • Create a local test user named "cifs-test"

    • Update /etc/pam.conf as followings,


      • "other    password required    pam_smb_passwd.so.1    nowarn" (Don't include quotes)


    • Enable the user


      • #smbadm enable-user cifs-test



  • Now, you are ready to go. From Windows, click on "Start" button ---> "Run"--->


    • Type \\Solaris-host-IP-Address\music-for-win

    • It'll prompt for user name and password. Use "cifs-test" user name and its password.



It's a workgroup mode where we have share level access. In next blog entry (Not so late :-)), I'll jot down steps for ADS/Domain configuration.


 ---xxx---


In a reverse test, I made Solaris host a cleint of Windows machine using "smbutil" command.



  • Create a user on Windows named "test"

  • On Solaris box,


    •  View the shares available on Windows,


#smbutil view //test@129.158.237.28

It'll display all the shares ... Now select one share which you want to connect and mount it,


#mount -Fsmbfs //test@129.158.237.28/SharedDocs /mnt


That's it!!! 


More later. Cheers! 





Comments:

I trying your procedure on opensoalris 101b.
1. in procedure one
>bash-3.2# sharemgr create -P smb vbj

I got a invalid smb protocol.

root@600m:~# sharemgr create -P smb vbj
Invalid protocol specified: smb
root@600m:~#

2. also in step two, there is not smbadm command.

>#smbadm enable-user cifs-test

root@600m:~# uname -a
SunOS 600m 5.11 snv_101b i86pc i386 i86pc Solaris
root@600m:~# ls /usr/bin/smb*
/usr/bin/smbcacls /usr/bin/smbget /usr/bin/smbstatus
/usr/bin/smbclient /usr/bin/smbpasswd /usr/bin/smbtar
/usr/bin/smbcontrol /usr/bin/smbprofiles /usr/bin/smbtree
/usr/bin/smbcquotas /usr/bin/smbspool /usr/bin/smbutil
root@600m:~#

Posted by T.J. Yang on November 25, 2008 at 09:51 PM IST #

OpenSolaris has minimally required packages. What you can do is to get the SUNWsmbs package which has the smbadm utility.

Try,
pkg install SUNWsmbs

You should be connected to network.

Check whether the protocol issue is also resolved.

Posted by Vivek Joshi on November 26, 2008 at 06:20 PM IST #

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referrers