MCHost-Marc
06-25-2001, 07:11 PM
I was wondering ...is there a way to get into the root folder without telnet/ssh ? Like ...setting it up to get into the root wonder with FTP? Because i hate uploading/downloading files using ssh. :D
I'm using WHM/Cpanel :)
And yep, i know its not good to send your password as plaintext - but i'm going to modify it as soon as i'm done. :stickout
jtan15
06-25-2001, 08:03 PM
Root should have it's own group on your system called "root". If this isn't the case, you can add it by doing this:
groupadd -g UIDHERE(make up a number >100) root
chown root:root -R /root
Once you have done this, add a user with this command:
useradd -o ftproot -u (UIDHERE(>100)) -d /root -g root
passwd ftproot (set the password)
chmod 770 /root
This way the "ftproot" user will have FTP access to the root directory, but isn't the actual root user. Also make sure that the ftproot doesn't have SSH/Telnet access!
Alternatively, you can copy the files in /root that you want to transfer into a user's directory and login via FTP as that user. :)
MCHost-Marc
06-25-2001, 08:14 PM
ditto. did that and now its returning a "command not found" error with every command i type ...
jtan15
06-25-2001, 10:09 PM
Hmmm. You might have chowned/chmodded a few too many files. What were the exact commands that you executed to get to this state?
MCHost-Marc
06-25-2001, 10:49 PM
this is all i did: (since the root group was already there)
useradd -o ftproot -u (UIDHERE(>100)) -d /root -g root
passwd ftproot (set the password)
chmod 770 /root
i'll just contact my provider :stickout :D
jtan15
06-26-2001, 04:37 PM
Originally posted by Kiwi
useradd -o ftproot -u (UIDHERE(>100)) -d /root -g root
passwd ftproot (set the password)
chmod 770 /root
The parenthesis weren't supposed to be taken literally. You should have done something like this:
useradd -o ftproot -u 589 -d /root -g root
passwd ftproot
chmod 770 /root
PagesUSA
06-26-2001, 11:36 PM
Van Dyke has an ftp program that runs encrypted. Like ssh, but it is ftp.
I think it was like $30.00.
use the sftp feature of a ssh client. i use the client at ssh.com - it has sftp.