Operating System - Linux
1753305 Members
6340 Online
108792 Solutions
New Discussion юеВ

Re: Something effecting SMB configuration file...?

 
Matthew Booth
Frequent Advisor

Something effecting SMB configuration file...?

Hello
I'm Running CIFS for OpenVMS v1.1 on I64 V8.3-1H1. I've been adding user shares so that folks can map a network drive from a Windows XP client to the VMS server, without any problems. Now I add another user to the SMB.CONF file same method used before and now I'm having a see/problem in the SMB.CONF file. example, when I add the users section

[user1]
path = /disk$work16/user1 <- same as others
read only = no
vfs objects = ods5
vms path names = No

I do a Testparm, and then I see

[user1]
path = disk$work16:[user1] <- It changed?
read only = no
vfs objects = ods5
vms path names = No

I tried to map to this users account and get mapped but has no access...get following error.

"M:\refers to a location that is unavailable..."

Thanks in advance.
Regards,
Matt Booth (VMS)

6 REPLIES 6
Ivan Ferreira
Honored Contributor

Re: Something effecting SMB configuration file...?

I never worked with SMB and VMS, but I know that the PATH names in VMS are in the form that is described by testparm, and the error message probably means that the path is not found on the SMB server. Ensure that the path exists with "set def".

>>> How do I convert an OpenVMS directory specification into a UNIX path specification?

Answer: Path specifications in the smb.conf file currently need to be in UNIX format, where an OpenVMS directory specification of PROJECT_ROOT:[MYPROJ] is /project_root/myproj/ . For example, "PROJECT_ROOT_[XY^.Z]" should be written as "/PROJECT_ROOT/XY.Z/"
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Matthew Booth
Frequent Advisor

Re: Something effecting SMB configuration file...?

The path specification is in fact in a Unix format when adding the user. I see the problem when a TESTPARM is run and then the error mapping to the user account.
Matthew Booth
Frequent Advisor

Re: Something effecting SMB configuration file...?

Not sure if my last replay contained a read file so here it is again:

BHAK>> type smb.conf_bhak
[global]
server string = Samba %v running on %h (OpenVMS)
netbios name = %h
netbios aliases = galaxy
security = user
passdb backend = tdbsam
domain master = yes
guest account = SAMBA$GUEST
domain logons = Yes
log file = /samba$root/var/log_%h.%m
create mode = 0755
load printers = no
printing = OpenVMS
add user to group script = samba$root:[bin]samba$addusertogroup %G %U
delete user from group script = samba$root:[bin]samba$deluserfromgroup %G %U
Vfs objects = ods2, varvfc

[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0750

[booth]
browsable = yes
path = /disk$work21/booth
vfs objects = ods2
writeable = yes

[kowalczyk]
browsable = yes
path = /disk$work17/Kowalczyk
vfs objects = ods2
writeable = yes

[herman]
browsable = yes
path = /disk$work23/herman
vfs objects = ods2
writeable = yes

[masella]
browsable = yes
path = /disk$work16/masella
vfs objects = ods5
writeable = yes

[spacht]
browsable = yes
path = /disk$work17/spacht
vfs objects = ods2
writeable = yes

[st_george]
browsable = yes
path = /disk$work15/st_george
vfs objects = ods2
writeable = yes

[weinerj]
browsable = yes
path = /disk$work17/weinerj
vfs objects = ods2
writeable = yes

[pccommon]
comment = Home Directories
path = /disk$pccommon/pccommon
read only = yes
guest ok = yes

BHAK>>
BHAK>> testparm
Load smb config files from /SAMBA$ROOT/LIB/SMB.CONF
Processing section "[homes]"
Processing section "[booth]"
Processing section "[kowalczyk]"
Processing section "[herman]"
Processing section "[masella]"
Processing section "[spacht]"
Processing section "[st_george]"
Processing section "[weinerj]"
Processing section "[pccommon]"
Global parameter netbios name found in service section!
creating default valid table
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions

[global]
netbios aliases = galaxy
server string = Samba %v running on %h (OpenVMS)
log file = /samba$root/var/log_%h.%m
load printers = No
add user to group script = samba$root:[bin]samba$addusertogroup %G %U
delete user from group script = samba$root:[bin]samba$deluserfromgroup %
G %U
domain logons = Yes
domain master = Yes
create mask = 0755
include = SAMBA$ROOT:[LIB]SMB.CONF_%h

vfs objects = ods2, varvfc

[homes]
comment = Home Directories
read only = No
create mask = 0750
browseable = No
vms ods5 volume = Yes

[booth]
path = /disk$work21/booth
read only = No
vfs objects = ods2
vms path names = No

[kowalczyk]
path = /disk$work17/Kowalczyk
read only = No
vfs objects = ods2
vms path names = No

[herman]
path = /disk$work23/herman
read only = No
vfs objects = ods2
vms path names = No

[masella]
path = disk$work16:[masella]
read only = No
vfs objects = ods5
vms ods5 volume = Yes

[spacht]
path = /disk$work17/spacht
read only = No
vfs objects = ods2
vms path names = No

[st_george]
path = /disk$work15/st_george
read only = No
vfs objects = ods2
vms path names = No

[weinerj]
path = /disk$work17/weinerj
read only = No
vfs objects = ods2
vms path names = No

[pccommon]
comment = Home Directories
path = /disk$pccommon/pccommon
guest ok = Yes
vms path names = No
BHAK>>

Regards,
Matt
Matthew Booth
Frequent Advisor

Re: Something effecting SMB configuration file...?

The problem in the last replay is with user
[masella] look at the path spec.

-Matt
Matthew Booth
Frequent Advisor

Re: Something effecting SMB configuration file...?

The problem I discovered is with mapping to an ODS5 structured device. The smb.conf file can't handle it and when I do a testparm it removes the backslashes in the path field...?

Matt
Matthew Booth
Frequent Advisor

Re: Something effecting SMB configuration file...?

Configure SMB.CONF for OpenVMS File Format Support

The HP CIFS Server supports accessing and creating OpenVMS files of various formats, but not all formats are supported. Additionally, some formats require the use of a Virutal File System (VFS) module to support them as noted below.
By default, the HP CIFS Server will create new files using a Stream record format with record attributes of Carriage return carriage control. Additionally, the server can read Stream and Stream_LF files without the need of a VFS module.
However, some Java applications require files be created in Stream_LF format. In such cases, the share section in the SMB.CONF file should include the line:

vfs objects = streamlf

Similarly, if a share may contain files with a Variable Length record format or a VFC (Variable Format Control) record format, the following line must be included in the share section in the SMB.CONF file:

vfs objects = varvfc <--- add this to the ods-5 share section for user in smb.conf file !!!!!

NOTE: This is applicable to both INDEXED and sequential file organization for the above-mentioned file formats. The VTF module converts file names on Windows to VTF-7 Unicode file names on ODS-5 disks.

The VTF module converts file names on Windows to VTF-7 Unicode file names on ODS-5 disks. To use VTF-7 format file names in a share, the following line must be included in the share section in the SMB.CONF file:
vfs objects = vtf