Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.