LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-19-2003, 02:25 PM   #1
Athos
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian/Slackware
Posts: 15

Rep: Reputation: 0
Unhappy Debian woes!


Problem 1: After adding a user from the command line with the adduser command when I login as that user I can't create, modify or delete all files in that users home directory. I would just change the permissions manually but I don't even know what they're supposed to be for a home dir.

Problem 2: After reading the apache web server documentation and determining that I've got everything setup right(to the best I can tell) I still can't figure out how to get a public_html folder that that my users can put html files into and have displayed on the internet.
 
Old 06-19-2003, 03:02 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
Problem1 = I think that you need to chmod 777 to the user directory. Then chown <username> /home/<user's directory?> .
 
Old 06-19-2003, 03:09 PM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
Sorry chmod 700 to the user's directory then chown <user's name> /home/<user's directory>
 
Old 06-20-2003, 03:17 AM   #4
footfrisbee
Member
 
Registered: Apr 2003
Distribution: Debian Sarge
Posts: 259

Rep: Reputation: 30
For apache, all the user has to do is make a folder named "public_html" in his/her home directory and put his/her webpage in it. Then this is accessed by typing in the address bar of your favorite web browser

http://127.0.0.1/~user/

And that's it.
 
Old 06-21-2003, 08:24 PM   #5
Athos
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian/Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
Alright, thanks alot guys. I just got home so I havent had the opportunity to try that yet. Should I have to do chmod on a user's home dir everytime I create a new user?
 
Old 06-21-2003, 09:20 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
there are defaults for this.

check for starters:
/etc/adduser.conf
/etc/skel/*
 
Old 06-22-2003, 06:55 AM   #7
Salz
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian
Posts: 23

Rep: Reputation: 15
Note, if a user wants apache to access her/his public_html directory, you neet to set at least execute permission for other on the users home and public_html dir. chmod o+x ~ ~/public_html would do that e.g., and +r for directory index. Also the pages in the public_html directory need to be readable by other.
 
Old 06-23-2003, 03:50 PM   #8
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
when you created the user, did you create the home dir seperately, did you use the --home option?
 
Old 06-27-2003, 09:22 PM   #9
masinick
Member
 
Registered: Apr 2002
Location: Clinton Township, MI
Distribution: Debian, antiX, Kubuntu, Xubuntu, and many others
Posts: 607
Blog Entries: 15

Rep: Reputation: 89
Quote:
Originally posted by tangle
Problem1 = I think that you need to chmod 777 to the user directory. Then chown <username> /home/<user's directory?> .
Better yet, when you change ownership, use chown -R. That changes all files and directories within the directory you specify. I wouldn't categorically change file mode to either 777 or 700 without a good reason to do so, though.
 
Old 07-17-2003, 07:14 PM   #10
sketelsen
Member
 
Registered: Jul 2003
Location: Olympia WA
Distribution: Gentoo Kernel 2.6.8-gentoo-r3; AMD Athlon XP 2200+
Posts: 63

Rep: Reputation: 15
this may be a stupid reply, but is there an entry for username:username (whatever it is) in /etc/group?
 
  


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
Debian CD woes :( kevingpo Debian 1 07-28-2005 04:41 PM
Debian woes xxxxspitfire Debian 7 02-16-2005 04:03 AM
Library woes with Debian kasira Linux - Newbie 8 01-03-2005 06:30 PM
More Debian sound woes... growse Debian 3 05-10-2004 08:11 PM
Debian and X? Nvidia driver woes as well. oudent Debian 3 05-10-2004 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration