Changeset 1021 for trunk/guitools/shared
- Timestamp:
- May 12, 2017, 4:04:41 PM (8 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/guitools/shared/masterpasswd.vrs (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/guitools/shared/masterpasswd.vrsr759 r1021 5 5 /* _MasterPasswdWrite() */ 6 6 /* _PasswordDBReWrite() */ 7 /* _MasterPasswdFindUser() */ 8 /* _MasterPasswdCreate() */ 7 9 8 10 /*:VRX _MasterpasswdRead … … 70 72 _MasterpasswdWrite: 71 73 IF options.!debug == 1 THEN say "_MasterpasswdWrite() started" 74 72 75 newmasterpasswd = TempDir'master.passwd' 73 76 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() 75 78 call lineout newmasterpasswd, '# syntax:' 76 79 call lineout newmasterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell' … … 134 137 IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'FindUser'") done, returning 'Idx 135 138 return 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.' 150 return 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
