- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- samba : minimum 8 character password.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2005 03:21 AM
тАО05-04-2005 03:21 AM
The system is a trusted system.
I want to set and verify passwords on the unix system itself i.e. I don't want to use the local windows domain.
How can I make sure that the users have to use at least 8 character passwords.
With my current smb.conf "min passwd length = 8" doesn't seem to be effective.
"min passwd length", according to the man pages, applies to the unix password. Can I have "unix password sync = yes" and "encrypt password - yes" or are these mutually exclusive ?
I there any way I can get samba to simply use the unix passwd database ?
This is my current - fairly simple - smb.conf
[global]
unix password sync = no
encrypt passwords = yes
min passwd length = 8
[homes]
; comment = Home Directories
guest ok = no
read only = no
; browseable = no
Regards,
Richard Price
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2005 01:55 AM
тАО05-05-2005 01:55 AM
Re: samba : minimum 8 character password.
The samba passwords are not stored in /etc/passwd. Rather it is stored in /var/opt/samba/private/smbpasswd.
You add samba passwords to users using the following command:
/opt/samba/bin/smbpasswd -a username
To sync Unix passwords with the samba passwords use:
unix password sync = Yes
- Andre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2005 07:19 PM
тАО05-05-2005 07:19 PM
Re: samba : minimum 8 character password.
# pdbedit -P "min password length" -C 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2005 04:03 AM
тАО05-11-2005 04:03 AM
Re: samba : minimum 8 character password.
However I don't think that command is available on my system.
I'm using the default version of CIFS that comes with 11.23 which is
CIFS A.01.11.02
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2005 04:15 AM
тАО05-11-2005 04:15 AM
Re: samba : minimum 8 character password.
I do not believe that min passwd length and unix password synch and encrypt password are mutually exclusive.
/opt/samba/bin/smbpasswd username password
for each user you want in the samba password database.
You can enforce password length on the OS level by having an /etc/default/security file.
Attaching an example.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2005 11:04 AM
тАО05-11-2005 11:04 AM
Re: samba : minimum 8 character password.
This command was introduced with Samba version 3. You can download CIFS server A.02.01.01, which should include the command from
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2005 08:57 PM
тАО05-11-2005 08:57 PM
Re: samba : minimum 8 character password.
I had already tried installing that kit. It said there were 2 missing dependencies...
KRB5-Client.KRB5-SHLIB,r>=B.11.2*.%
LdapUxClient.LDAP-C-SDK,r>=B.03.20.%
I found and installed KRB5, but can't find
LdapUxClient.
I don't really want to go down the LDAP route if I can avoid it. Maybe I can't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 12:18 AM
тАО05-12-2005 12:18 AM
Solutionhttp://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=J4269AA
Otherwise, you can get samba source and compile it yourself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 03:02 AM
тАО05-12-2005 03:02 AM
Re: samba : minimum 8 character password.
I've successfully installed the new version of CIFS (in essence samba 3).
Now "min passwd length = 8 " just works !
I didn't even need to use the pdbedit command.
This what I get now if I try and set a password with less than 8 chars...
_____________________________________
$ smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
machine 127.0.0.1 rejected the (anonymous) password change: Error was : Password restriction.
Failed to change password for pricer
_____________________________________
...and my smb.conf is still very simple...
[global]
invalid users = root bin daemon adm sync shutdown halt mail news uucp operator
min passwd length = 8
encrypt passwords = yes
Thanks very much for your help everyone.