반응형
How can I install and configure a very basic CIFS/9000 Server?
CONFIGURATION
HPUX 11.X CIFS/9000 Server
RESOLUTION
Note: The following setup is not intended for use on systems where security
is paramount. However, CIFS/9000 Server can be secured through further
configuration.
1. Login as root
2. Install CIFS/9000 Server with swinstall
3. Run the configuration script (this script was written by HP)
# /opt/samba/bin/samba_setup
- Select Security Level: User
- Set the netbios name of your choice
- Enter the host’s domain name or workgroup name
Note: The configuration script should only be run once after installation.
To make changes to the configuration edit the configuration files directly or
use the SWAT tool.
4. Edit /etc/opt/samba/smb.conf and verify that the following fields
were set to the values selected during the configuration script:
workgroup = {The selected domain name}
server string = {The selected netbios name}
security = user
5. Edit /etc/opt/samba/smb.conf and create one or more shared
directories.
Here is an example:
#======================== Share Definitions =========================
[homes]
comment = Home Directories
browseable = no
# This one is useful for people to share files
[tmp]
path = /tmp
[example]
path = /test/eg
The string in the square brackets [] is the name by which the shared
directory will be publicly referred to; while the "path" string
indicates the fully qualified path of the local directory which will be
shared.
6. Start CIFS/9000 Server
# /opt/samba/bin/startsmb
7. Start NetBIOS name server. (If you wish the CIFS/9000 Server to be
visible on the "Network Neighborhood" view.)
# /opt/samba/bin/nmbd -D
8. The new shared directory can now be found in the "Network Neighborhood" view
and mapped as a regular network drive on your Windows system or CIFS/9000
Client.
What to do if the CIFS/9000 Server fails to authenticate the users?
-------------------------------------------------------------------
While attempting to connect to a share on CIFS/9000 Server, the PC client may
receive the following error:
"The account is not authorized to login from this station" This can be caused by the client using an encrypted password, and the CIFS
cerver expecting an unencrypted (or clear text) password. The situation can be
resolved by enabling clear text passwords on the client side, or by enabling
encrypted passwords on the CIFS/9000 Server.
Here are the steps:
1. Edit /etc/opt/samba/smb.conf and add the following entry to
the "global" section:
encrypt passwords = yes 2. Grant access to the desired users by executing the following command to add
them to /var/opt/samba/private/smbpasswd
/opt/samba/bin/smbpasswd -a {unix_username} {unix_password}
3. The shared directories should now be accessible.
How to automatically start the CIFS/9000 Server at boot-up?
-----------------------------------------------------------
1. Edit the /etc/rc.config.d/samba file.
2. Change the last line of the file to: RUN_SAMBA=1
3. The CIFS server will start at the next boot-up.
is paramount. However, CIFS/9000 Server can be secured through further
configuration.
1. Login as root
2. Install CIFS/9000 Server with swinstall
3. Run the configuration script (this script was written by HP)
# /opt/samba/bin/samba_setup
- Select Security Level: User
- Set the netbios name of your choice
- Enter the host’s domain name or workgroup name
Note: The configuration script should only be run once after installation.
To make changes to the configuration edit the configuration files directly or
use the SWAT tool.
4. Edit /etc/opt/samba/smb.conf and verify that the following fields
were set to the values selected during the configuration script:
workgroup = {The selected domain name}
server string = {The selected netbios name}
security = user
5. Edit /etc/opt/samba/smb.conf and create one or more shared
directories.
Here is an example:
#======================== Share Definitions =========================
[homes]
comment = Home Directories
browseable = no
# This one is useful for people to share files
[tmp]
path = /tmp
[example]
path = /test/eg
The string in the square brackets [] is the name by which the shared
directory will be publicly referred to; while the "path" string
indicates the fully qualified path of the local directory which will be
shared.
6. Start CIFS/9000 Server
# /opt/samba/bin/startsmb
7. Start NetBIOS name server. (If you wish the CIFS/9000 Server to be
visible on the "Network Neighborhood" view.)
# /opt/samba/bin/nmbd -D
8. The new shared directory can now be found in the "Network Neighborhood" view
and mapped as a regular network drive on your Windows system or CIFS/9000
Client.
What to do if the CIFS/9000 Server fails to authenticate the users?
-------------------------------------------------------------------
While attempting to connect to a share on CIFS/9000 Server, the PC client may
receive the following error:
"The account is not authorized to login from this station" This can be caused by the client using an encrypted password, and the CIFS
cerver expecting an unencrypted (or clear text) password. The situation can be
resolved by enabling clear text passwords on the client side, or by enabling
encrypted passwords on the CIFS/9000 Server.
Here are the steps:
1. Edit /etc/opt/samba/smb.conf and add the following entry to
the "global" section:
encrypt passwords = yes 2. Grant access to the desired users by executing the following command to add
them to /var/opt/samba/private/smbpasswd
/opt/samba/bin/smbpasswd -a {unix_username} {unix_password}
3. The shared directories should now be accessible.
How to automatically start the CIFS/9000 Server at boot-up?
-----------------------------------------------------------
1. Edit the /etc/rc.config.d/samba file.
2. Change the last line of the file to: RUN_SAMBA=1
3. The CIFS server will start at the next boot-up.
반응형