Ignore:
Timestamp:
May 12, 2017, 4:04:41 PM (8 years ago)
Author:
Herwig Bauernfeind
Message:

GUITools: masterpasswd.vrs: Clean up password mess

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/shared/masterpasswd.vrs

    r759 r1021  
    55/*   _MasterPasswdWrite()                                  */
    66/*   _PasswordDBReWrite()                                  */
     7/*   _MasterPasswdFindUser()                               */
     8/*   _MasterPasswdCreate()                                 */
    79
    810/*:VRX         _MasterpasswdRead
     
    7072_MasterpasswdWrite:
    7173    IF options.!debug == 1 THEN say "_MasterpasswdWrite() started"
     74
    7275    newmasterpasswd = TempDir'master.passwd'
    7376    ok = SysFileDelete(newmasterpasswd)
    74     call lineout newmasterpasswd, '# Created by Samba GUI Tools 'date('E')' 'time(''))
     77    call lineout newmasterpasswd, '# Created by Samba GUI Tools 'date('E')' 'time()
    7578    call lineout newmasterpasswd, '# syntax:'
    7679    call lineout newmasterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell'
     
    134137    IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'FindUser'") done, returning 'Idx
    135138return idx
     139
     140/*:VRX         _MasterPasswdCreate */
     141_MasterPasswdCreate:
     142    IF options.!debug == 1 THEN say '_MasterPasswdCreate() started.'
     143    call lineout samba.!masterpasswd, '# Created by Samba GUI Tools 'date('E')' 'time('')
     144    call lineout samba.!masterpasswd, '# syntax:'
     145    call lineout samba.!masterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell'
     146    call lineout samba.!masterpasswd, 'root:*:0:512::0:0:root:/nonexistent:/usr/sbin/nologin'
     147    call lineout samba.!masterpasswd, 'guest:*:65534:65534::0:0:guest:/nonexistent:/usr/sbin/nologin'
     148    ok = stream(samba.!masterpasswd,'c','close')
     149    IF options.!debug == 1 THEN say '_MasterPasswdCreate() done.'
     150return
Note: See TracChangeset for help on using the changeset viewer.