A Fileshare Server uses its password file to verify that a client enterprise server is entitled to access its files. Although Fileshare can run without a password file, you must use one if you want to apply any security through the Fileshare Server itself. This is strongly recommended, since Fileshare has access to all the files on your system.
The Fileshare Server uses its password file only when the enterprise server makes its first attempt at access (that is, when it starts up). File-level security is controlled by MSS itself, through the resource definitions you make.
The only way to maintain a password file is through this command line:
fs /pf pwd-filename options
fs -pf pwd-filename options
Depending on the options you specify, Fileshare creates, modifies, or deletes pwd-filename. You can name the password file whatever you want, but it must correspond to the name you specify with the /pf option when configuring the Fileshare Server.
If you delete all the entries in the password file, the Fileshare server deletes it.
Assume no password file exists, and you want to create one with two entries. The following commands:
fs /pf fssecu.pwd /u Usr1 /pw fspass1 fs /pf fssecu.pwd /u Usr2 /pw fspass2
fs -pf fssecu.pwd -u Usr1 -pw fspass1 fs -pf fssecu.pwd -u Usr2 -pw fspass2
result in the password file fssecu.pwd being created, with entries for both Usr1 and Usr2. The Usr1/fspass1 and Usr2/fspass2 combinations must correspond to FS username and FS password fields in the enterprise server's SIT.
To put password checking into effect on a Fileshare Server called FSSERV (for example), you must use the /pf option when starting it:
fs /s fsserv /cm ccitcp /pf fssecu.pwd
fs -s fsserv -cm ccitcp -pf fssecu.pwd
To disable Usr2's access to this Fileshare Server, use the following command:
fs /pf fssecu.pwd /e /u Usr2 /pw fspass2
fs -pf fssecu.pwd -e -u Usr2 -pw fspass2
If you now enter this command:
fs /pf fssecu.pwd /e /u Usr1 /pw fspass1
fs -pf fssecu.pwd -e -u Usr1 -pw fspass1
Fileshare removes the entry for Usr1, and deletes the file fssecu.pwd.