Printable Version of Topic
Click here to view this topic in its original format
Dingetje's Forum > Support > Create a user and home share


Posted by: ly9cs Nov 12 2009, 07:55 PM
Hello
I have a tiny question.

I have done this before but I can not seem to rember it.

If I create a user in the controlpanel, homeshare and all
What command do I need to run to allow this user to create folders on its own homeshare on ftp.

When connecting to the user I just did I can not send files, via ftp, to the pub_html

This would be http:\\freescobox_ip\~username

Command me Dark Lord!




Posted by: dingetje Nov 13 2009, 03:22 PM
What version of FREESCO? And are you running with the stock ftp server of FREESCO?

Posted by: dingetje Nov 13 2009, 03:34 PM
I've just tried with FREESCO 037 and then there's no problem to create directories in the pub_html folder via FTP (I've used FileZilla as FTP client) of a 'normal' user created via the web control panel.

Command that may correct the problem (as root in a console or SSH session):

CODE

chown -R username.users /home/username


where username is the username of the account you've added.

Posted by: ly9cs Nov 14 2009, 02:14 PM
v 0.4.0

Posted by: dingetje Nov 17 2009, 11:31 PM
Did you try looking at the owner of the user's pub_html directory?
You can do that with the next command:
CODE

ls -la /home/username


The pub_html folder should be owned by username.users

I did try adding a user with the 040 control panel, and the user was added, but the directory wasn't owned by the user. To be honest I'm not 100% sure because my vmware machine did not report back after creating the user, so YMMV.

Also did you try my suggestion I posted earlier to change the owner of the directory?

Another suggestion is to upgrade to a later version because 0.4.0 was the first 0.4.x version and 0.4.2 may be better.

Posted by: dingetje Nov 20 2009, 01:55 AM
I think there's maybe a problem with adding a user via the web control panel.
When I added a user via the command line (command to use is useradd and then reply to the prompts) all went well. Did you try that?

Posted by: dingetje Nov 21 2009, 10:56 AM
I've asked Lightning about this issue and he has confirmed it to be a bug. This is due to the SSH key generation for a new user that requires tty input for the random generator.

I'm sure this will get fixed in the next 0.4.x release ASAP!

In the mean time use the command line (via console or SSH session) to add new users.

Thanks for reporting!
goodjob.gif

Posted by: dingetje Nov 24 2009, 07:53 AM
A patch for 0.4.2 has been released to fix this problem.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)