Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Nov 28, 2010 8:07 pm 
Offline
Newbie

Joined: Sun Nov 28, 2010 7:31 pm
Posts: 4
Hello,

Just got started with linode yesterday and things have been going smoothly so far (despite my somewhat noobness to linux). I set up a LAMP stack on Ubuntu with no problems, at which point I was able to use Transmit to SFTP as a root user.

However, then I went through the process of "locking down" my SSH and setting up a firewall with iptables (with help from http://articles.slicehost.com/2007/11/6 ... tup-page-1 and
http://library.linode.com/security/basi ... k_down_ssh). So now I am logging into SFTP with my username but can only edit files in my directory. I know I can use SSH and sudo to get root access through Terminal. But sometimes I'd rather use SFTP for some of the changes I'm making, and not be limited to just my user directory.

What are my options to increase permissions for my user? At the very least I'd like to have access and permissions to change the files in my other user directories, i.e. make changes to the public_html folders in each of my websites so I don't need to keep logging in as a different user.

I also have webmin installed if that helps w/ users and groups.

Thanks for the help!

Vince


Top
   
 Post subject:
PostPosted: Mon Nov 29, 2010 4:56 pm 
Offline
Newbie

Joined: Sun Nov 28, 2010 7:31 pm
Posts: 4
After doing some more digging, looks like pure-ftpd could be a good option for me. i.e. http://old.linode.com/forums/viewtopic.php?t=6021

Anyone agree or have a better suggestion?

Thanks,
Vince


Top
   
 Post subject:
PostPosted: Mon Nov 29, 2010 5:24 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Fugu (a Mac Gui for SCP), root, use cert not password (your ssh config should NOT allow root logins by password).


Top
   
 Post subject:
PostPosted: Tue Nov 30, 2010 9:05 pm 
Offline
Newbie

Joined: Sun Nov 28, 2010 7:31 pm
Posts: 4
Thanks vonskippy. I tried Fugu and I cannot login with root since I turned off root login for security reasons. I created a new user with a cert, not password, that I want to use as my primary user but it is locked out of all directories except for its own user directory. I want this user to be able to modify all public_html directories for my various websites. I'll be using Panic's Transmit and Coda software for web development, which supports SFTP.

Do I just need to change permissions on the directories I want to be able to modify? What is the proper way to do this?

Thanks,
Vince


Top
   
 Post subject:
PostPosted: Tue Nov 30, 2010 11:40 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Well, if you want to be able to use SFTP or SCP and copy files to ANY directory, you pretty much have to use 'root'.

Otherwise you have to SFTP/SCP the files to the users home directory, then ssh in, then sudo up to root, then copy the files, then change the file permissions.

Personally, I set

Code:
PermitRootLogin without-password
ChallengeResponseAuthentication no


Gen the certs

And set my Filezilla SFTP client or WinSCP client to login as 'root' with the correct cert.

Just remember to change the ownership/rights as needed.

Of course I'm old school (scientific unix), and don't have the vast fear of using a root account that you young ubuntu fellows seem to have.

YMMV


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group