Online Expert Day - HPE Data Storage - Live Now
April 24/25 - Online Expert Day - HPE Data Storage - Live Now
Read more
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Using SAMBA to access Unix file system from windows

SOLVED
Go to solution
John Ferro
Regular Advisor

Using SAMBA to access Unix file system from windows

Hi,

I have HP-UX V2 and i would like to access Unix file system from my windows xp desktop. exactly i want gui based samba tool to do that.

I need exactly steps i should follow to have an access.

Regards,
3 REPLIES
Lijeesh N G_1
Respected Contributor
Solution

Re: Using SAMBA to access Unix file system from windows

Rita C Workman
Honored Contributor

Re: Using SAMBA to access Unix file system from windows

It's been a long time since I set up SAMBA, so I may miss something..

Confirm you have software loaded.
Next read the information on smb.conf, because there are alot of options you can define. That is something you'll have to figure out for your shop. Remember that the "#" and the ";" both are viewed on a line as rem'ing out the line.

To me it was just a matter of setting up the smb.conf file (/etc/opt/smb.conf).
It's under the ====Share Definitions==== that you create your remote file system definition. Let's say you want to create a share for accounts payable (AP), it might look like this:

[AP]
comment = ABC Company Accts Payable
path = /apps/ap/path/
public = yes
browseable = yes
; valid users = %u
guest ok = yes
writeable = yes

OK..path is the HPUX file system path to where you want them to go. I made this one browseable, guest allowed and writeable. I even put in valid users - but you notice I left the line but decided to rem it out.

To start Samba it's just:
startsmb
To stop Samba it's just:
stopsmb
To check status it's just:
smbstatus

On the Windows PC you would:
Right click Start/Explore/
From top toolbar
Click Tools
Click Map Network Drive
Pick an open drive number (after H)
\\\AP

Make sure your files have permission set for 'world' to (r)ead on your box.

Now...that leaves alot out though. Those options at the start of smb.conf and security. Here, I removed the extra security because our folks at the point of getting into their PC have already jumped through 2 levels of security access. When they hit the SAMBA connection they do a ONE time user/password = guest/. And they never have to do it again. Your shop may require something else.

Hope this gives you a basic start, and I'm sure others will lend you a hand with the rest.

Kindest regards,
Rita
Steven E. Protter
Exalted Contributor

Re: Using SAMBA to access Unix file system from windows

Shalom,

A short discussion on your options.

security = user
smbpasswd is used to set up the smbpasswd file. User must exist local. smbpasswd -a username

security = domain
# An option to integrate into a windows domain.

security = ads
# Sometimes problematic integration designed to get user authentication from a windows ADS server. The Windows ADS server needs to be fully patched.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com