Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ok, first the apology. Normally I'd plough through docs for a few weeks and tinker until I've learned what I needed, however I'm in a bit of a hurry. I spent yesterday and this morning digging through any tutorial and doc I could find to learn, but none seemed to take it quite as far as I need to go. I just installed Mandrake 9.2 over the weekend to get into the wonderful world of Linux, and also to build myself a little web server to develop pages on.
Is there anywhere I can find a good tutorial that shows how to create a user, set up permissions to create files and folders, and either chroot or simply start the user in the html directory? So far my searches (while blowing off work this morning) have come up empty.
Normally, I'd spend the time learning all this alone, but I've got a new website job about to start and would like to get the server up so I don't have to rely on my hosting service for debugging and such. I have Apache, PHP, and MySQL up and configured, and now just need an easy way to upload the pages from my dev box. FTP seemed the likely choice, and as proftpd was installed with the distro, seemed like a no-brainer.
I have the server up, and accepting connections (authenticating as my user account), but I can't figure out how to either create a new account, or give my current account permission to browse to the /var/www/html dir and upload files. At one point I was able to browse there, but not create or write files. Somewhere along the way I screwed that up and can no longer even browse beyond my user directory. I'm assuming that much of this is more just the linux side of things than the ftp configuration, but I'm in the dark on both.
Well, why don't you just 'adduser'? Proftp does chroot by default. Just edit sshd.conf and make sure just the users who need access to it get access. When I ran something like that I just made a small script to create all that was needed... (For example
chown $1:$1 /var/www/html/$1
etc.... You could also start the user in their html directory(having wwwroot in subfolder is just my preference), just edit the proftpd config. Personally I use pure-ftpd so don't really remember proftpd config, but maybe someone else can field that one. Should be easy.
post your configuration file for proftpd it should be /etc/proftpd.conf and maybe we can see what you can tinker with and change.
to create a new user to your Linux box just use useradd <name> -d <home dir>
and after you do this you can give it a password by doing passwd <name>