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:
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?
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.
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
Thanks Tony for the quick reply.
1. So after I finish I should run this:
Where should I put the password?
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 :)
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.
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.
If you don't have that command, install it. If you do but it doesn't work, tell us what the error actually says.
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:
gpasswd(1) should already be installed on your SUSE installation.
|All times are GMT -4. The time now is 06:47 AM.|
Linux and Unix Supported by: vBulletin
Search Engine Optimisation provided by DragonByte SEO v2.0.32 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Unix & Linux Forums Content Copyright ©1993-2016. All Rights Reserved.
Forum Operations by The UNIX and Linux Forums