Creating FTP account using SSH (putty)?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Creating FTP account using SSH (putty)?
# 1  
Old 01-06-2010
Question Creating FTP account using SSH (putty)?

Hello, : )

I have a remote access to the server that hosts my joomla, and it does not have cpanel.
So I have to do everything manually.

I need to have an FTP account to the httpdocs folder because I need to put these info in the config file of joomla (to allow file uploading ...etc)


So, I googled, and found this:


Quote:
To create FTP user through SSH you would need to follow below mentioned steps:

1. Login as root through SSH.

2. Next add the user account you want using the 'useradd' command

useradd <username>

3. Now create a special group for that user.

groupadd <groupname>

4. Now to add the user to the group

gpasswd -a <username> <groupname>

These commands are non-standard but available on most popular distributions.
If not, then you can try editing /etc/group using your favorite text editor.

5. Change the group ownership of the special directory to that group.

chgrp -R groupname /path/to/your/web/directory

6. Enable write permissions

chmod -R g+rw /path/to/your/web/directory


But I have 2 questions:
1. Shouldn't there be a step to add a password to the account?

2. Step 4 is confusing, it it for adding a password or adding a user to the group?
If it is for both, them wheere should I write down the password? is it instead of -a?

3. path/to/your/web/directory
should I directly write /httpdocs or should I put the whole path from root/....etc

I'm really new to Linux.

Any help is appreciated.
Thanks.
# 2  
Old 01-06-2010
1. Yes, run "passwd <userame>" as root user will do that for you.

2. Yes, it is not how I would do it, I would just edit /etc/group and add the user to that group's line preceded by a comma if users are already in that group, the user will have to log off and back on again to see the new group membership, or take a look at:
How To: UNIX Add A User To A Group

3. Yes.

HTH
# 3  
Old 01-06-2010
Thanks Tony for the quick reply.

1. So after I finish I should run this:
passwd <userame>
Where should I put the password?
Like this:
passwd <userame> mypassword
?

2. I'm reading the article, Thanks.
But I think I'll be back with questions.

3. Yes, mean the whole path, or just the directory "httpdocs"?

Thanks again Smilie
# 4  
Old 01-06-2010
1. No the passwd command will ask you for the password twice after hitting the enter key, providing a password as a command line parameter is not good security practice and does no work with the passwd command.

3. Sorry, yes, the whole path.
# 5  
Old 01-07-2010
Hi Tony.

Everything was Ok until this step:

gpasswd -a <username> <groupname>

I wrote it exactly as it is:
gpasswd -a myusername thegroup

but it gave me an error message that this command is not right, or something like that. :S

Is there any other command I can use?
My server uses Suse11 a.

Thanks.
# 6  
Old 01-07-2010
If you don't have that command, install it. If you do but it doesn't work, tell us what the error actually says.
# 7  
Old 01-07-2010
I admit I have never heard of gpasswd, I would either edit /etc/group or add the user to the secondary group when caliing useradd, that is -G <secondarygroup>.

According to this article:
http://www.suse.de/za/private/support/online_help/howto/secure_webserv/index.html
gpasswd(1) should already be installed on your SUSE installation.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Query regarding PuTTY SSH Tunneling

I have a process running on my local server. http://dev.techx.com:6060/proct I wish to block port 6060 and expose port 7777 to the outside world. I block port 6060 and open port 7777 on the firewall. What should be the PuTTY Settings -> Connection -> SSH -> Tunnels 1. Destination ... (3 Replies)
Discussion started by: mohtashims
3 Replies

2. UNIX for Advanced & Expert Users

Making SSH coonection through putty

Hi Folks , I am using putty to connect to a unix box machine the issue is that every time i need to enter the credentials of the servers (unix box) , please advise is there any way i can configure putty so that only i need to eneter the user id of the server and password is automatically pass... (1 Reply)
Discussion started by: n4noida
1 Replies

3. SuSE

Unable to putty using ssh at port 22

I installed linux on one of my system and assigned valid network ip to it. I am able to connect to net properly. But when I try to putty this system from another system using ssh at port 22 then it gives me connection timed out error. When I ping the system it responds fine but still unable to... (2 Replies)
Discussion started by: rupeshkp728
2 Replies

4. Solaris

Putty SSH connection not working

I am trying to connect to a solaris server using putty from a indows client. SSH connection is not working. The terminal indow just gives an error message "Network error:Connection refused". I verified SSHD and its running correctly! #svcs -p ssh STATE STIME FMRI online 17:54:44... (3 Replies)
Discussion started by: herbich1985
3 Replies

5. Solaris

how to get to openboot through ssh putty?

hi, iīm trying to get openboot through ssh putty, could you tell me the way because i donīt have a sun keyboard.. thanks... (3 Replies)
Discussion started by: pabloli150
3 Replies

6. Red Hat

Free SSH Client other than PUTTY

Is there any Better FREE SSH client similar to Secure CRT ? We are working on cluster db servers. PROD/DEV/UAT/QA/TEST server hostnames are just one letter differences. it always confuse me to which one I am logging in. So I am looking for a free SSH client, for windows where I can store... (4 Replies)
Discussion started by: johnveslin
4 Replies

7. UNIX for Advanced & Expert Users

Automate with Putty-SSH for 2 users

Hi, I have automated logins to Unix boxes with Ssh - Putty combination. Have created a Pub - Pvt key combination for the same. Added the entry of username in "User name" box of Putty. This works perfectly for the specified user. I want this to happen now for another user as well, without... (0 Replies)
Discussion started by: vibhor_agarwali
0 Replies

8. UNIX for Dummies Questions & Answers

Creating a new account

Hi How do I create a new account with a specific group and home directory specified? TIA (2 Replies)
Discussion started by: domburf69
2 Replies

9. Linux

Display to PC via ssh/putty (RHE 5)

Hi all, I just installed Red Hat Enterprise and I would like to have the KDE/GNOME windows display to my PC. When I am root (via ssh, putty) I type startx but it fails. I'm not sure what has to be configured! Any help would be greatly appreciated. Thanks! (1 Reply)
Discussion started by: kjbaumann
1 Replies

10. Solaris

SSH with Putty

I've been trying to setup my SunBlade as an SSH server. I configured the sshd_config file, but I cannot get the keys to exchange properly. I generate a key pair in Putty on my laptop (the host, running Win2K), exported the Private key as OpenSSH and then copied the public key to the a file I... (3 Replies)
Discussion started by: AJA
3 Replies
Login or Register to Ask a Question