LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-24-2004, 07:11 AM   #1
cubax
Member
 
Registered: Nov 2004
Posts: 34

Rep: Reputation: 15
user permissions


Hello everybody,
I'm a LIN newbie and I just finished setting up a Debian machine which will be dedicated to host some websites for me and some friends.
What I want to do now is to create some users with restricted permissions.
They just have to be able to copy files on their own www directory.
That's it. Nothing more.
My structure is
/var/www/http/[siteName]
What I want to do is to give to every user an SSH account that is able to read / write on its DIR.

Then, how I can get details about users/groups on my system?
(Because I want those users to be in the www-data group [if it is right])

Thanks a lot and sorry for my lame questions!

Ciao
 
Old 11-24-2004, 04:34 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Re: user permissions

Quote:
Originally posted by cubax
Hello everybody,
I'm a LIN newbie and I just finished setting up a Debian machine which will be dedicated to host some websites for me and some friends.
What I want to do now is to create some users with restricted permissions.
They just have to be able to copy files on their own www directory.
That's it. Nothing more.
My structure is
chown username:www-data /var/www/http/[siteName]
chmod 750 /var/www/http/[siteName]

The problem with this of course is that if all users are in the www-data group then they're all abte to see each others files (if that's an issue)

Quote:

What I want to do is to give to every user an SSH account that is able to read / write on its DIR.

Then, how I can get details about users/groups on my system?
(Because I want those users to be in the www-data group [if it is right])

Thanks a lot and sorry for my lame questions!

Ciao
You can look at the groups with
Code:
vi /etc/group
There may be some GUI tool for it, but I wouldn't know what it is.
 
Old 12-17-2004, 01:24 PM   #3
cormander
Member
 
Registered: Dec 2004
Location: Hawaii
Distribution: Fedora & CentOS
Posts: 72

Rep: Reputation: 15
There are several "Hosting Control Panels" that do this for you with a GUI over the web, such as Cpanel, Plesk, etc.

Unfortionatly these cost money, and a lot of it.

Thats why I have started an open-source project of my own, to do these same things without the dreaded cost. I put the project on sourceforge.net , but haven't released any files yet ( having a baby reall cuts into your free time )

http://sourceforge.net/projects/ravencore/

Anyway, I'd be willing to install what I have of it so far if you're willing to let me. Would be nice to port it for debian. PM me if you're interested.

-Corey
 
Old 12-17-2004, 01:43 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Quote:
Originally posted by cormander
Thats why I have started an open-source project of my own, to do these same things without the dreaded cost.
I've done things as a labor of love before, or just to prove to myself that I could, or because all existing options sucked, but if the cost is the only reason for writing it, I think you may be reinventing the wheel on this one as there are several free hosting control panel solutions out there already. Here's one and here's another and another and ... Well, you get the idea. There's 15 projects on Freshmeat.net for "Hosting control". Some free, some not.
 
Old 12-17-2004, 01:48 PM   #5
cormander
Member
 
Registered: Dec 2004
Location: Hawaii
Distribution: Fedora & CentOS
Posts: 72

Rep: Reputation: 15
Okay well I guess I forgot to mention that I do love making it, have learned a ton in doing it, and have nothing else better to do when the wife and child are asleep

Plus none of those projects are really huge. I'll humor myself into thinking that I can make mine bigger and better.

-Corey
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user permissions blubbfish Linux - Security 2 04-28-2004 06:33 AM
user permissions blubbfish Linux - Newbie 1 04-27-2004 01:22 PM
user permissions Hmmyah Linux - Newbie 4 12-11-2003 08:03 PM
User Permissions BigDDave2001 Linux - Security 4 11-17-2003 05:43 AM
user permissions newpenguin Linux - General 7 11-07-2002 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:44 PM.

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