Site5 - Built For Designers & Developers MENU

backstage console to ssh / putty set me (root / admin) for cyberduck ftp asscess

[2 Grey Star Level]

Hi Im Benz, I’m very sleepy x,

—————————————————————

In Backstage I get temp console session then login with putty (ssh client windows)

The ssh console shows that public_html and public_ftp are in root (~) directory…

There is another level above root…

root@th [~]# cd ../
root@th [/]# ls -l

total 116
drwxr-xr-x 22 root root 4096 Mar 22 10:02 ./
drwxr-xr-x 22 root root 4096 Mar 22 10:02 ../
-rw-r–r– 1 root root 0 Mar 22 10:02 .autofsck
-rw-r–r– 1 root root 0 Mar 21 14:06 .autorelabel
dr-xr-xr-x 2 root root 4096 Mar 22 03:15 bin/
dr-xr-xr-x 4 root root 4096 Jun 7 2013 boot/
drwxr-xr-x 15 root root 3360 Mar 22 10:02 dev/
drwxr-xr-x 88 root root 12288 Mar 22 21:05 etc/
drwx–x–x 6 root root 4096 Mar 22 03:01 home/
dr-xr-xr-x 12 root root 4096 Mar 22 03:15 lib/
dr-xr-xr-x 10 root root 12288 Mar 22 03:15 lib64/
drwx—— 2 root root 16384 Jun 7 2013 lost+found/
drwxr-xr-x 2 root root 4096 Sep 23 2011 media/
drwxr-xr-x 2 root root 4096 Sep 23 2011 mnt/
drwxr-xr-x 9 root root 4096 Jun 7 2013 opt/
dr-xr-xr-x 121 root root 0 Mar 22 10:02 proc/
-rw-r–r– 1 root root 109 Mar 22 03:01 razor-agent.log
-rw-r–r– 1 root root 0 Mar 21 16:28 .readahead_collect
dr-xr-x— 12 root root 4096 Mar 22 03:13 root/
dr-xr-xr-x 2 root root 12288 Mar 22 03:15 sbin/
lrwxrwxrwx 1 root root 25 Mar 21 14:06 scripts -> /usr/local/cpanel/scripts/
drwxr-xr-x 2 root root 4096 Jun 7 2013 selinux/
drwxr-xr-x 2 root root 4096 Sep 23 2011 srv/
drwxr-xr-x 13 root root 0 Mar 22 10:02 sys/
drwxrwxrwt 4 root root 4096 Mar 22 20:34 tmp/
drwxr-xr-x 14 root root 4096 Mar 22 10:02 usr/
drwxr-xr-x 24 root root 4096 Mar 22 03:04 var/

and I think that root is in home this seem backwards to me….

Any ways…
—————————————————————-

now Iam tring to add my self as a user cause I don’t know how to say i am root less (again not sure) type:

root@th [/]# su

—————————————————————

so I try and create a user called benz addhim to a group (what is a group??)

and set him a password like this:

root@th [~]# useradd benz -s /bin/false -d ~
or:
root@th [~]# useradd benz -s /bin/false -d ~/public_html/
or:
root@th [~]# useradd benz -s /bin/false -d ~/public_ftp/
then:
root@th [~]# gpasswd -a benz users
Adding user benz to group users
then:
root@th [~]# chmod g=rwx ~/public_html/
root@th [~]# passwd benz
Changing password for user benz.
New password: *****************
Retype new password: *****************
passwd: all authentication tokens updated successfully.

OK!
—————————————————————

so now to Cyberduck

ftp://benz@[my-domain/site-ip]:22

type my pass (^ the one I just set and says passwd: all authentication tokens updated successfully.)

Button then I get 503 access denied…

How do I start FTP upload my files with Cyberduck as normal?

Thank you, I have ice coffee now and some tape to stop my eyes from involuntary shutting and will continue to try to learn this… please help if you know answer x

Answer #1

Hi there! I assume this is on an unmanaged service? If so, it is normal that you access SSH as the root user, as you have root access. Your home directory should be in /home (there is another in /root/home, but I would not advise using that one).

Regarding your FTP access, you would need to set up a hosting user for that, rather than just a system user. The auseradd command will create a user with a /home folder and SSH access (or should), but not set up hosting or an FTP account.

Answers Answered By: jdavey [359 Blue Star Level]

Answer this Question

You must be Logged In to post an Answer.

Not a member yet? Sign Up Now »

Money Back Guarantees
Click to verify BBB accreditation and to see a BBB report.