Operating System - HP-UX
1836962 Members
2588 Online
110111 Solutions
New Discussion

Advanced Server and net share

 
Coolmar
Esteemed Contributor

Advanced Server and net share

Hi,

I have a share setup pointing to a filesystem called /share. The share is called NAIS. When I type net share NAIS, I get:

Share NAIS
Path c:\nais
remark blah blah blah
Max Users: no limit

I cannot find anywhere that says that the share NAIS is really the /share directory on UNIX (which supposedly it is) and where does the path "c:\nais" come from? and what I need to do is remap NAIS to the /share_new filesystem. Also, when the share points to the new directory will it screw up their windows mapping?

I am sure this must be pretty basic, but I have not worked with AS/U before and I don't know Windows all that well when you get into mapping, etc.

Thanks!
Sally
2 REPLIES 2

Re: Advanced Server and net share

Hi Sally,

It may a stupid question but :
Where do you type net share ... ?
On HPUX server or on your PC ?

It semms that you share your home windows machine.
If you want to share a HPUX path directory, you need a NBEUI process running via a Samba witch can be accessible by windows machines.

B.R.

J.M.B.)
Rainer von Bongartz
Honored Contributor

Re: Advanced Server and net share

this is the syntax of the net share command:

NET SHARE sharename
sharename=devicename[,...] [/PRINT] [/USERS:# | /UNLIMITED]
[/REMARK:"text"] [/YES]
sharename [/PRINT [/YES]]
sharename=drive:path [/USERS:# | /UNLIMITED] [/REMARK:"text"] [/YES]
sharename [/USERS:# | /UNLIMITED] [/REMARK:"text"]
{sharename | devicename | drive:path} /DELETE [/YES]


Path c:\nais means that you share the UNIX path /nais as sharename nais.

you can simply change the share to point to a new UNIX directory.

First check the permission on the share


first remove the definition
net share nais /delete

and then re-create it

net share nais c:/

You should also check the permission of the share and eventually re-create the on the new share definition:

net perms \\nais

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...