Difference between revisions of "Samba Access"

From UFRC
Jump to navigation Jump to search
(Added password changing method, and cleared up what it takes to create a Samba account)
Line 9: Line 9:
 
</pre>
 
</pre>
 
As can be seen, the command will ask for the old password, then for the new password twice.
 
As can be seen, the command will ask for the old password, then for the new password twice.
 +
===Administrative Reset===
 +
In the case that a user has forgotten their samba password, their password can be reset by logging into phpLDAPAdmin and changing the values of '''sambaLMPassword''' and '''sambaNTPassword''' to a known value.
 +
 
==Creating Samba Accounts==
 
==Creating Samba Accounts==
 
'''Note: This can only be done by administrators'''
 
'''Note: This can only be done by administrators'''

Revision as of 14:35, 19 April 2011

Changing Samba Passwords

To change your samba password (after your samba account has been created), do the following:

$ smbpasswd -r samba
Old SMB password:
New SMB password:
Retype new SMB password:
Password changed for user <USERNAME>

As can be seen, the command will ask for the old password, then for the new password twice.

Administrative Reset

In the case that a user has forgotten their samba password, their password can be reset by logging into phpLDAPAdmin and changing the values of sambaLMPassword and sambaNTPassword to a known value.

Creating Samba Accounts

Note: This can only be done by administrators

To allow users to mount HPC filesystems on their workstations on campus (or over campus VPN), we need to add a sambaSAMAccount objectclass to their LDAP entry and set their Sambas password.

[root@submit ~]# smbldap-usermod -a cpp
Warning: sambaPrimaryGroupSID could not be set beacuse group of user cpp is not
a mapped Domain group!
To get a list of groups mapped to Domain groups, use "net groupmap list" on a
Domain member machine.

[root@submit ~]# smbldap-passwd -s cpp
Changing samba password for cpp
New password: 
Retype new password: 

You can use 'smbpasswd' as opposed to 'smbldap-passwd' if you prefer.