ElliotH
07-06-2002, 08:02 PM
I have an account, and I'm just wondering
if it's possible to create small account INSIDE of my account?
Like.. i have blah.f1man.com.
I would like to host someone at blah.f1man.com/user
Of course, with seperate ftp ID and Password..
Is this possible?
Thank you in advance.
Studio64
07-06-2002, 08:17 PM
With a shell access... Anything is possible... Although I'd pretty much assume that you'd be voilating the TOS and your host (if they found out) would shut off your account and not refund your money.
ElliotH
07-06-2002, 08:21 PM
Could you tell me how do to it please?
Owner doesn't really care.. he gave me account for free
Studio64
07-06-2002, 08:28 PM
Are you attemping to re-sell the space or simply just give someone access to only that directory?...
What control panel are you using (if any)..?
What OS is the server?
I think it would be possible as I know someone who does that (they use CPanel)
ElliotH
07-06-2002, 08:46 PM
No selling, just giving someone space to upload his Mp3s.
It's only 100MB, so I couldn't possibly sell it anyway.
Thanks!
ElliotH
07-06-2002, 08:47 PM
I don't use any Cpanel, don't really know what it is..
Server's running Apache/1.3.20 (Unix) PHP/4.0.6 on Linux.
Apache/1.3.20 (Unix) PHP/4.0.6 thats quite old and has security holes, newest is Apache/1.3.26 (Unix) PHP/4.2.1 upgrade and we'll help you:D
Studio64
07-06-2002, 09:02 PM
OK... Havn't been in a *nix enviroment for a while...
someone correct me if this is wrong..
Your gonna have to be root for this....
get to the directory that you want to add the extra directory to
mkdir home/blahaccount
useradd -d home/blahaccount -s /dev/null blahaccount > /dev/null 2>&1
password blahaccount
** You'll get the changing password stuff...
Enter the new pass for the user twice... ETC...
now edit 'etc/shells'
and add the line dev/null (if not already there)
so the old file would be something like
/bin/bash
/bin/sh
/bin/ash
/bin/bsh
/bin/tcsh
/bin/csh
Add dev/null to the end
Now edit etc/passwd
the line
blahaccount:x:502:502::/home/blahaccount/:/dev/null
will be there change it to read
blahaccount:x:502:502::/home/./blahaccount/:/dev/null
That should limit the new user to FTP access only since their login is only to dev/null and the ./ should limit them only to their directory b/c now it seems that they are at the top of their directory structure...
NOTE As I said I havn't worked in a *nix enviroment for a while... So please double check this w/ someone else before implementing it..... Also... If you don't understand any command that I have given look it up.. Never run any commands you don't know....
BTW... The person that gave you the account can probably do this for you as well :D
ElliotH
07-07-2002, 01:45 PM
Ok, I'll check it with someone and try..
Thanks!