|
Sams Teach Yourself Samba in 24 Hours |
|||||||||||||||||||||||
|
Hour 7: File Sharing |
|||||||||||||||||||||||
|
Q My smb.conf file has a file share called [docs] in it. This share is intended for document writers to save their documents in. The directory has a group owner of docs, which all the document writers are in, and the mode of the directory is 0770, but no one can write into the directory. What have I done wrong?
A Do you have one of the following parameters in the share definition?
writable = yes writeable = yes read only = no
Remember, a share is read-only by default, and you have to make it writable before writes are allowed, regardless of directory or file permissions in the share.
Q I have defined a new share called kits, but no one can connect to it. They keep getting a message: The specified share directory cannot be found. Other users get a dialog box saying Cannot access \\server\kits .... What could the problem be?
A Check the path statement in your [kits] share section. If the path does not exist or the users do not have access to it, they can get these sorts of messages.
Q What is the smallest [HOMES] section you can get away with? Hint, if the share is not browsable, it doesn't really need a comment.
A You need to make the share writable, so users can at least write into their home shares and so the smallest [HOMES] section has two lines, for example:
[homes] writable = yes
Q How would you stop files created in the [HOMES] share from being created world (other) readable?
A Here you have to use the create mode and directory mode parameters to ensure you handle files and directories correctly. So, simply add the following to your [HOMES] share:
Create mode = 0750 Directory mode = 0740
This takes away any world permissions.
Q How would you ensure that only machines A, B, and C can access the file share [DOCS]?
A To ensure that only machines A, B, and C can access any file share, simply add a hosts allow statement to the share. Remember, you can use names or IP addresses, netgroups, and so on. So add the following to the [DOCS] share:
Hosts allow = A B C
|
Sams Teach Yourself Samba in 24 Hours |
|||||||||||||||||||||||
|
Hour 7: File Sharing |
|||||||||||||||||||||||
|
© Copyright Macmillan USA. All rights reserved.