To set the permissions, you must configure Samba so that the user account that is
starting the storage agent has root access.
About this task
The following example explains how to configure Samba 2.2.2. Other versions of Samba might
require different configuration steps.
Procedure
-
Set the Samba share directory read-only parameter to NO.
-
Set the Samba guest ok parameter to NO.
-
Use a user name map file that maps a Windows login name to an existing UNIX name. Create a file
that is named user.map and place it in the
/usr/local/samba/bin directory on the UNIX server.
Tip: Previous versions of Samba might install in the /opt
directory.
-
Add the following line to the user.map file, where
admin represents the user account that is starting the storage agent:
root = root administrator admin
-
Add the following line to the global section of the Samba smb.conf
file:
username map = /usr/local/samba/bin/user.map
-
Test the permission settings by completing the permission-testing procedure.