reedjasonf
Dabbler
- Joined
- Mar 12, 2013
- Messages
- 21
Hello,
So here is what I'm trying to do: I would like to develop a fairly simple web interface for users to be able to create their own account for our share running FreeNAS. This way, each user can create their own account and choose their own password instead of me having to go into the FreeNAS gui and create everyone's account and assign them a password.
I thought I could do this easily with PHP and SSH by writting php instructions that would log into the shell with ssh, create the user, add them to a group, and set their password. I was able to log into freenas by SSH and create users and groups but those users and groups did not show up in the GUI. Also, after a few minutes those groups and users that I manually created through the shell had disappeared. Why? When creating users and groups I used:
and
Was I doing something wrong or is FreeNAS set up to store user, group, and password information somewhere different then the pw command? Where can I see the commands the GUI sends to the OS when it creates new users? I don't care to do anything with homegroups. I just need to make the accounts show up in the GUI and let the user set their own password.
So here is what I'm trying to do: I would like to develop a fairly simple web interface for users to be able to create their own account for our share running FreeNAS. This way, each user can create their own account and choose their own password instead of me having to go into the FreeNAS gui and create everyone's account and assign them a password.
I thought I could do this easily with PHP and SSH by writting php instructions that would log into the shell with ssh, create the user, add them to a group, and set their password. I was able to log into freenas by SSH and create users and groups but those users and groups did not show up in the GUI. Also, after a few minutes those groups and users that I manually created through the shell had disappeared. Why? When creating users and groups I used:
Code:
pw adduser -u 1476 -n <username> -g 1002 -c "John Doe" -d /nonexistent
and
Code:
pw modgroup 1002 -m 1476
Was I doing something wrong or is FreeNAS set up to store user, group, and password information somewhere different then the pw command? Where can I see the commands the GUI sends to the OS when it creates new users? I don't care to do anything with homegroups. I just need to make the accounts show up in the GUI and let the user set their own password.