LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-02-2005, 06:27 AM   #1
qball15j
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Rep: Reputation: 0
Making the switch - From Windows to Linux


After about four years of running a Windows Server and learning it inside an
d out, I think I'm ready for some change. Looks like I'm going to go with T
inySofa Classic Server, I've tried a number of others but TinySofa seems to
be right for me.

I was going to switch everything over earlier to another box so I could mess
with TinySofa on my production server and use my current TinySofa box as my
webserver but I ran into a few problems and thought I'd better hold off.

I'll have a number of questions, so get prepared...

I'll start off with a few...

1. Security... Security... Security...
What to do, what not to do, etc.
I believe I pretty much got the basics covered but jsut want some more info.

2.When creating a new user, how would I go about having a public_html folder
created under that user's home directory and have permissions automatically
set so Apache can access it? (Automation is key)

This is related to my second question, when a user uploads a file via FTP th
e permissions aren't right for Apache to be able to read it. How would I go
about getting that straight so I dont have to change the permissions for ev
ery new file?
 
Old 01-02-2005, 07:44 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Here's a thread on LQ with security stuff in it.
http://www.linuxquestions.org/questi...threadid=45261

There's also a complete security forum here where you can get more specific answers I think.
 
Old 01-02-2005, 10:09 AM   #3
qball15j
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for that link, I can go off that for alot of good information.

Since that covers my security question, what about the others. I tried searching for a few things regarding my other questions but I haven't got anywhere so far.
 
Old 01-02-2005, 10:27 AM   #4
ttolst
Member
 
Registered: Jan 2005
Location: Århus, Denmark
Distribution: Debian GNU/Linux
Posts: 34

Rep: Reputation: 15
You can place files that you want all new users to get in "/etc/skel/". It should set the permissions to something like 644 automatically i think.

For the correct permissions, somewhere in your ftp servers configuration, it should set a standard Umask. It works in the opposite way of normal permissions. A umask of 000 will allow everyone everything, while 022 will remove write access to group and other, and is probably want you want. (default perms will then be 644)
 
Old 01-02-2005, 11:16 AM   #5
qball15j
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
ttolst, That did the trick, I came across both those things before but didn't have enough information to know what they were used for or how they are used..

I haven't tested my new vsftpd config yet but I'm assuming its going to go right...

Thanks,
QBall
 
Old 01-02-2005, 01:08 PM   #6
qball15j
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Well, didn't think about posting this before but how would I get the permissions changed on the user's home directory automatically when creating a new user?
 
Old 01-02-2005, 02:26 PM   #7
ttolst
Member
 
Registered: Jan 2005
Location: Århus, Denmark
Distribution: Debian GNU/Linux
Posts: 34

Rep: Reputation: 15
hrm, this might vary from distro to distro. In debian, the adduser man page says this:

If the file /usr/local/sbin/adduser.local exists, it will be executed after the user account has been set up in order to do any local setup. The arguments passed to adduser.local are: username uid gid home-directory

But i am almost certain that this adduser command is debian specific, but you might want to check out the man pages for useradd, and if it exists, adduser.
 
Old 01-02-2005, 03:23 PM   #8
qball15j
LQ Newbie
 
Registered: Feb 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I think I found something....
/etc/default/useradd

# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
windows, I want to switch to linux rob1983 Linux - Newbie 35 11-26-2006 07:48 AM
making the switch from linux to freebsd sether *BSD 8 12-07-2005 07:24 PM
finally making the switch to linux drrnsk8ter4 Linux - Software 3 04-21-2004 09:53 PM
Can I switch from Windows to linux in one day? paragon Linux - General 19 06-09-2003 12:36 PM
Thinking of making the Linux Switch, need some advice. monkeywork Linux - General 4 09-29-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration