LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-08-2001, 10:47 AM   #1
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Rep: Reputation: 30
Question Samba question


Hi guys

Just a quickie

I,ve managed to setup SAMBA shares so I can both see and access them from Windows, but at the moment i,m limited to being able place files in the users home dir, what I also want to be able to is place them in the www dir for my server, is this at all possible? I,ve allready updated the user account to include the user in question to the apache group but i,m not sure what to do next? can I just create a shortcut to the www dir and place it in the users dir??? or is this unsafe? and how is it done???

Any help would be appreciated, hehe i,m nearly there

Thx guys

RecoilUK
 
Old 12-09-2001, 09:24 AM   #2
Zvezda
Member
 
Registered: Jul 2001
Location: Fort Wayne
Distribution: Redhat 9.0, Fedora2
Posts: 87

Rep: Reputation: 15
you wrote>i,m limited to being able place files in the users home dir

make sure that the user directorys are set to writable they may default to read only
 
Old 12-09-2001, 10:31 AM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You can point apache to whatever folder you want and you can share any folder.


the folder is owned by root not apache


apache has read only permission same as everyone else

you should leave it that way


use ssh to log in and su - to root, then move the files over


if you are not worried about security (write access to web folder through netbios) then you can give the users group write access but don't do anything to apache. use the users default group.

chown :usersgroup /webfolder
chmod g+w /webfolder


setup samba like this on the share
[web]
path = /webfolder
invalid users = *
valid users = webuser
read only = No
browsable = No
then you will not see the folder in network neighborhood, to access it use \\server\webfolder

or make it browsable if you want everybody else to see it

I would make the webuser have no shell login.
by changing the default to /bin/false

/etc/passwd
webuser:x:???:???:webuser:/webfolder:/bin/false


I usually do this as well

[global]

invalid users = *
valid users = @mygroup



-----------------------------------

then add your users to mygroup



Last edited by DavidPhillips; 12-09-2001 at 10:56 AM.
 
Old 12-09-2001, 11:08 AM   #4
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Original Poster
Rep: Reputation: 30
Thx for the reply guys

If I did this would it work?

Setup a user (webmaster) so that his user dir is ( ../home/webmaster) and then point apache to (../home/webmaster/www) so it used that folder to serve up web pages and also point PHP to (../home/webmaster/include) for its include folder.

Would that be ok? Would I need to change any ownerships at all?.

I would really like to use ssh because I have a fealing thats what i,m going to need to learn when I actually get a Linux server with an ISP, but havnt got a clue how to use it or set it up and what I really want to do is design some web pages and learn PHP/MySql but it seems like I,m just going to go on forever learning Linux.

Thx guys

RecoilUK
 
Old 12-09-2001, 12:24 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
sounds like that would work fine
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 06:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 03:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 09:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:31 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