The "top one" problem of this device in my opinion is the 2-User bug... Yes I consider this a bug, a lack of planning, a complete blindness of the consumer needs. Or this device is a Wireless disk to just one user and I didn't understand well the product definition...Well not anymore.
To create a user:
Access your g-connect as admin and get root access. I ran all this as root.go to root directory and check if there is a script called mkaccount
- bash-3.2# cd /root
- bash-3.2# ls -l
- -rwxr-xr-x 1 root root 331 Apr 12 2013 mkaccount
- echo 'passw0rd' | ./mkaccount test
bash-3.2# echo 'passw0rd' | ./mkaccount test
about to create account at /usr/share/homebase-accounts/regserver.pl line 659, <STDIN> line 1.
Added user test.
done create account at /usr/share/homebase-accounts/regserver.pl line 665, <STDIN> line 1.
<oeserver_response>
<error number='0' text='success'/>
<groupid text='test' />
<accountpaid value='false' />
</oeserver_response>
bash-3.2#
The creation of users is described here:
http://www.openstora.com/wiki/index.php?title=Create_administrative_Web_user_from_shell_command_line
Then I tested the users on Finder, the new user worked as expected, so I created another one and I noticed one thing... All users are sharing the same "home directory"!! This looks pretty simple to solve, it's just create new home directories and set to the new users. Let's try:
First create a home directories to the new users ( test and user ) on /mnt/eSata:
- mkdir homeuser
- mkdir hometest
bash-3.2# ls -l
total 40
drwxrwxrwx 1 apache users 4096 Jul 19 08:47 Documents
drwxrwxrwx 1 apache users 4096 Mar 26 2012 Music
drwxrwxrwx 1 apache users 4096 Jul 16 16:15 Network Trash Folder
drwxrwxrwx 1 apache users 4096 Mar 26 2012 Photos
drwxrwxrwx 1 apache users 4096 Jul 19 11:45 Public
drwxrwxrwx 1 apache users 4096 Jul 16 16:15 Temporary Items
drwxrwxrwx 1 apache users 4096 Jul 19 11:01 TimeMachineBackup
drwxrwxrwx 1 apache users 4096 Mar 26 2012 Videos
drwxrwxrwx 1 apache users 4096 Jul 19 15:01 homeuser
drwxrwxrwx 1 apache users 4096 Jul 19 12:59 hometest
Now set the new home to the both users:
/usr/sbin/usermod -d /mnt/eSata/hometest test
/usr/sbin/usermod -d /mnt/eSata/homeuser user
One of this users lost the access on OSX Finder then I set the new home. Finder shows an error different of wrong password. In my case was just the permissions of the home directory:
- chown apache homeuser
- chgrp users homeuser
- chmod 777 homeuser
On SMB it's necessary change the home path:
bash-3.2# vi /etc/samba/smb.conf
Change /home/%U to %H or comment and create other line as below
#path = /home/%U
path = %H
Restart SMB:
bash-3.2# /etc/init.d/smb restart
Shutting down SMB services: [ OK ]
Shutting down NMB services: [ OK ]
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]OBS: Once the users admin and guest are hard coded in homepage,Ipad/Iphone and Android apps, this workaround solve only the problem of users in computers using smb(Windows Network) or afp(Apple File Protocol).
OBS2: admin user can view files from ALL OTHER USERS as the individual homes are sub-directories of root home directory.
OBS3: This new users will not connect as SSH users. This device comes with a special ssh daemon who disable all other users than admin.
Let's back to my list of oddities:
It's impossible create users, product comes with admin and guest account only.- The Gigabit Ethernet works with gigabit speed only when the Wi-Fi is OFF, when ON (AP router mode) the speed is fast ethernet 100/10
The android app is impossible download from my country.The hard drive comes formatted in FAT32. It's impossible write files larger then 4gb.
