Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
i think I got samba working on my Ubuntu server 11.4
My windows pc see the share directory but I think I need to change the dir permission.
what cli do I use to make the dir
/home/storage able to let anybody write and read to it.
chmod to modify it's permissions but if you want the people using Windows shares to read/write to it you would need to modify the share on samba's end by editing /etc/smb.conf. Very helpful guides can be found on http://www.samba.org/ for that.
I added the following lines to the smb.conf at the end
Comment = storage
Writable = yes
Path = /home/storage
After adding this and resetting the smb service all windows systems would see the available storage dir in the network neighborhood but when I try to ve a file to it from said systems I would get a warning that I had not te permission what do I need to do now.
I used the command
sudo midair /home/storage
To treate the dir on the system
It works I am able to access it from ny pc in my home. For now it will do I am not worried abou dir privacy as I am placing it in a small school and only for teachers to story school related fles on it.
The permissions of the directory being shared will not allow "anybody" to save files in it with 0755 permissions.
If you want users who are teachers to be able to access it, create users for them on the samba server:
sudo smbpasswd -a <username>
Create a 'teachers' group. Change the group ownership of the directory to teachers'.
Change the permissions to ug=rwx,o=rxt
Now users who aren't owners, and not members of the `teachers' group will have read access but not write access.
It the permissions of a directory are stricter than the samba permissions, you will have the lesser permissions.
The samba.org website has a good book: Samba 3 by Example. It will walk you, step by step, through setting up different types of samba shares, including creating the directories, setting permissions, and configuring smb.conf.