Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do you create a mount point on Aix to a Windows server?

Posted on 2006-07-10
3
1,539 Views
Last Modified: 2013-11-17
Aix 5.2, Samba 3.0.22
I've got Samba up and running and I can map a drive from a Windows box to a directory on the Aix box.
I need to go the other way. I need to export files from Aix to Windows.  I've used NFS to create mount points from Aix to Windows.  How do you do it using Samba?
0
Comment
Question by:Westez
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Rick Hobbs earned 250 total points
ID: 17078421

To configure Samba, bring up the smb.conf file on your UNIX
path --  usr/local/samba/lib/
Edit the smb.conf file
There will be many sections
edit global and disk shares sections
u will see          workgroup = WORKGROUP
in the place of   second work group give ur work group or domain name
and u will see netbios name = hostname
in the place of host name give the name of the computer which has to be displayed in the network places

In that file add these entries
[Accounting]
path = /Smb_Act
public = yes
printable = no
writable = yes

Creating Samba User Accounts
Creating Samba user accounts is an important step because without it, you users could not gain access to the Samba service. It is also very important for Windows domains, as you will see in a bit.

domain user would only to have to log in into the domain, and access to Samba shares would then become available depending on their domain login script—in the same manner as any other Windows network shares. The key here is that when you create a Samba user, make sure that the user has the same credentials as their Windows domain account does.

For example, let's say we  have a domain user called Ted. He is an accountant, and I want to give him access to the Samba Accounting share created in the previous example. First, the user must already have a local system account on your UNIX/Linux box acting as your Samba server. In other words, Ted should already have an account on the server. If he doesn't, I would first need to create one before giving him a Samba account.

To give a user a Samba account (Ted in this example), go to the command prompt as root and type the following command:

smbpasswd –a TedYou will then be prompted to enter a password for the new Samba user. Make sure that it is the same password as the user's Windows domain account. Add all your users in this manner; once finished, you'll need to make sure that the Samba and NetBIOS name services are started. To put it simply, the NetBIOS name service allows your Samba server to translate machine names on Windows networks to IP addresses. To start the Samba service, type the following command at the prompt as root.

smbd startTo start the NetBIOS name service, type the following command at the prompt:

nmbd startAfter these services have been started or restarted, we can now go to our Windows domain controller and create or modify user logon scripts to map our new Samba drive
0
 

Author Comment

by:Westez
ID: 17081637
Thanks, but I've done the above.  I need to create a mount point on the Aix box that points to a Windows share.
0
 

Author Comment

by:Westez
ID: 17130838
I don't think you can do this using Samba and Aix, at least know one has come with an answer for it yet.  You can do it using NFS, if the Windows system has "Unix Services for Windows" running on it.  Unix Services For Windows is now a free download from Microsoft.  A few years ago you had to buy it.

You can also use the CIFS_FS package that is bundled with Aix v5.2 and up.  You may need to install it the package/fileset first, using Smitty.  Once you have the fileset installed and CIFS running, use this command to create the mount point.

mount -v cifs -n servername/username/password -o wrkgrp=domain name,fmode=755 /sharename /mount point

to have the mount point survive a server reboot, add it to /etc/rc.nfs like this.
/usr/sbin/mount -v cifs -n servername/username/password -o wrkgrp=domain name,fmode=755 /sharename /mount point

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question