rejetto forum

Mass Account Creation

AYEHAN · 20 · 10749

0 Members and 1 Guest are viewing this topic.

Offline AYEHAN

  • Occasional poster
  • *
    • Posts: 92
    • View Profile
is it possible to add a list of account in one click?

like id.txt have user id password each in 1 line and hfs will create thoise account automatic

user1 password
user2 password

like this


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
I suppose it would be possible to do with macro but I could not say an exact piece of code.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
you can quit hfs and try editing your hfs.ini
the line starting by "accounts="


Ukyo

  • Guest
you can quit hfs and try editing your hfs.ini
the line starting by "accounts="
But the user and the password are encrypted in a single statement.

It's possible to pass user/password to the .ini in plain-text? 
What's the format? (username:password gives me garbage on the users menu on HFS)


Thanks in advance.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
ah, you are right :(
at the moment plain-text is not supported.
but in next 2.3 build it will!

the format is a standard "base64".
my default text editor (pspad) knows how to encode and decode it.
anyway, you'd better wait for the next build.

since build #216 it will be possible to add a new account by just appending this text to the "accounts=" line
;login:myusername:mypassword

« Last Edit: November 25, 2008, 11:08:22 PM by rejetto »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2063
    • View Profile
put a menuitem to encode or not the accounts in hfs.ini

don't forget that an account has different tags to manage it
« Last Edit: November 25, 2008, 11:21:55 PM by mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
the solution i described above (and already accomplished) doesn't require any menu item


Offline Ukyo

  • Occasional poster
  • *
    • Posts: 3
  • BOFH
    • View Profile
    • 3v1l
With the help of the all-mighty Notepad++ (and MIME Tools plugin) I've constructed a (very long) string with the logins/passwords encoded in base64, and passed it to the hsf.ini file.

It works like a charm!  ;D

Thanks Rejetto!


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
next build, other than supporting plain text, will consider enabled accounts (where not specified).
i guess that you got all your accounts disabled.


Offline Ukyo

  • Occasional poster
  • *
    • Posts: 3
  • BOFH
    • View Profile
    • 3v1l
i guess that you got all your accounts disabled.
I've done my homework watching what happens with "accounts=" when you create an user with the GUI ;D
I've passed also the options.  It was like:
Code: [Select]
accounts=login:base64user:pass|enabled:yes|no-limits:no;login:base64user2:pass2|enabled:yes|no-limits:no; (etc)
BTW, it'd great to have an option to bulk register users/folder permissions... It was pretty painful to manually assign the view/upload permissions manually for 38 users and 3 folders (intranet use)  :P

I think something in the like of SAMBA for permissions on folders could work pretty well, don't you?
Code: [Select]
[salesdoc]
path = /home/shared/sales
write list = rocky tony


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
BTW, it'd great to have an option to bulk register users/folder permissions... It was pretty painful to manually assign the view/upload permissions manually for 38 users and 3 folders (intranet use)  :P

uh... i understand the problem.
next build wil be able to set permissions by the macros language.
better than nothing.

Quote
I think something in the like of SAMBA for permissions on folders could work pretty well, don't you?
Code: [Select]
[salesdoc]
path = /home/shared/sales
write list = rocky tony

and where do you put this piece of text?


Offline AYEHAN

  • Occasional poster
  • *
    • Posts: 92
    • View Profile
Quote
It was pretty painful to manually assign the view/upload permissions manually for 38 users and 3 folders (intranet use)  :P

and i have 81 folder's with 30,000+ files :(


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
did you know that you can select 81 folders and then set permissions?
that will apply to all folders you selected


Offline AYEHAN

  • Occasional poster
  • *
    • Posts: 92
    • View Profile
oh yes i knew that
its a great option.

can i use it to allow disallow on folders but ppl can see all the folders on main or say root/?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13521
    • View Profile
it depends on the options "list protected resources only for allowed..."