Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: emilelek on July 06, 2006, 04:43:50 PM
-
Hi All!
I have 2 configuration questions.
The first one is: how can I (properly) change SAMBA's charset settings in SME?
(I realize I shouldn't just edit smb.conf as normally would.)
My preferences would be:
display charset = ISO8859-2 (instead of ISO8859-1)
dos charset = 852 (instead of 850)
unix charset = ISO8859-2 (instead of UTF8)
... and I apologize for my second question (yes I know this is considered eXXXtremely insecure) but this is really needed:
How can I make null (blank) passwords acceptable?
Thanks in advance for your kind help!
-
... and I apologize for my second question (yes I know this is considered eXXXtremely insecure) but this is really needed:
How can I make null (blank) passwords acceptable?
sudo /sbin/e-smith/db configuration setprop passwordstrength Users none
to check to see what it is set at:
sudo /sbin/e-smith/db configuration getprop passwordstrength Users
source: http://no.longer.valid/phpwiki/index.php/SME%20Server%207%20password%20check%20and%20settings
-
how can I (properly) change SAMBA's charset settings in SME?
(I realize I shouldn't just edit smb.conf as normally would.)
Correct, modify the database as described below, expand the template and restart the service again.
My preferences would be:
display charset = ISO8859-2 (instead of ISO8859-1)
dos charset = 852 (instead of 850)
unix charset = ISO8859-2 (instead of UTF8)
sudo /sbin/e-smith/db configuration setprop smb DisplayCharSet ISO8859-2
sudo /sbin/e-smith/db configuration setprop smb DosCharSet 852
sudo /sbin/e-smith/db configuration setprop smb UnixCharSet ISO8859-2
sudo expand-template /etc/smb.conf
sudo signal-event reboot
The latter statement can also be replaced by the command to restart samba but I don't know the exact command. The reboot will also take care of reloading the changes, but i agree it is overkill.
-
The latter statement can also be replaced by the command to restart samba but I don't know the exact command. The reboot will also take care of reloading the changes, but i agree it is overkill.
service smb restart
-
The latter statement can also be replaced by the command to restart samba but I don't know the exact command. The reboot will also take care of reloading the changes, but i agree it is overkill.
Samba will notice that its configuration file has changed, and I think will load the new settings automatically.
-
... and I apologize for my second question (yes I know this is considered eXXXtremely insecure) but this is really needed:
How can I make null (blank) passwords acceptable?
sudo /sbin/e-smith/db configuration setprop passwordstrength Users none
to check to see what it is set at:
sudo /sbin/e-smith/db configuration getprop passwordstrength Users
source: http://no.longer.valid/phpwiki/index.php/SME%20Server%207%20password%20check%20and%20settings
This will not allow completely blank passwords.
Dave
-
why not -- it completely turns off password checking?
-
This will not allow completely blank passwords.
Correct.
Why do you want to allow blank passwords?
-
why not -- it completely turns off password checking?
No it turns off password strength checking...
password strength checking = none
A password is still required.
I don't know how you would completely turn off the use of passwords.
Dave
-
This will not allow completely blank passwords.
Correct.
Why do you want to allow blank passwords?
Setting the passwordstrength property to "none" really does not allow blank (null) passwords (the reset password dialog still says: "This field must not be left blank"), that's why I asked for a workaround ...
(I'm sorry for beeing that bad guy :evil:, but for "compatibility reasons" I would really need this /I would better not say much about the concrete situation because that would also be against security ... ;-) /)
-
... modify the database as described below, expand the template and restart the service again.
sudo /sbin/e-smith/db configuration setprop smb DisplayCharSet ISO8859-2
sudo /sbin/e-smith/db configuration setprop smb DosCharSet 852
sudo /sbin/e-smith/db configuration setprop smb UnixCharSet ISO8859-2
sudo expand-template /etc/smb.conf
sudo signal-event reboot
Thanks cactus, your code setting the CharSet props into db worked (checked with: sudo /sbin/e-smith/db configuration getprop smb DisplayCharSet ...etc.), but unfortunately expanding the template did not ...
I realized that smb.conf is not in /etc but in /etc/samba but it did not work with the changed path (sudo /sbin/e-smith/expand-template /etc/smb.conf)
Any ideas?
Thanks a lot for your efforts!
-
Thanks Guys indeed for all your help so far, but unfortunately I'm still stucked without anything workable for both of my questions ...
Could somebody please give some workable solution for my initial questions as:
1. How to enable "real" blank passwords for users?
2. How to set SAMBA's DisplayCharset, DosCharset and UnixCharset values properly and persistently?
Thx alot