Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
We use samba at work to share files from a server machine to machines running Linux and Windows. It works great but if a user creates a new folder, they cannot then write to it without someone sshing into the server and changing the folders permissions.
Can anyone tell me how to configure samba to allow users to write to directories that they have created?
the mask is a octal 3bit setting where it has the opposite effect of chmod permissions. If you do a chmod 777 then it gives rwx, in a mask if you set it to 777 then it removes all three (like a chmod 000). If you set your mask to 222, then it effectivly gives a chmod 555. You will probably want to tinker with it a while to get it the way you want.
I've edited /etc/samba/smb.conf. I picked a share and added create mask = 0000 (figuring this would act like doing a chmod 777). I restarted samba and from a remote machine created a folder, moved into the folder and tried to create a text document and got the error "Access Denied, could not write to .................".
Have a done something wrong should there be a section labelled "share" or do you put the line into the individual shares?
Hmmmmmmmmmmm, I just noticed something else weird. If I create a folder on the samba share as root I can write to it but I get this error if I try to delete it (even though it cannot be busy as all I have done is create it an try to delete it immediately):
mainbox:/mnt/reception# mkdir Test
mainbox:/mnt/reception# rm Test/ -fr
rm: cannot remove directory `Test/': Device or resource busy
I'm sorted now (I hope). The problem was that I hadn't specified a guest account. I've now added "guest account = <<UserName>>" to my smb.conf. Changed all the files in the share to be owned by that user and it all seems to be working OK.