LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting up Samba (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-samba-91246/)

MattLaw 09-10-2003 09:49 AM

Setting up Samba
 
Hi, I setup Samba on my server and am using Mandrake 9.1 on the clients. The client recognises the Samba server but wont let me write to it. I am wondering do you have to edit the "smb.conf" or should it just pick up through wizards?

Here is my existing smb.conf file:



# Global parameters
[global]
workgroup = MDKGROUP
server string = Samba Server %v
encrypt passwords = Yes
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
printer admin = @adm
printing = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No

[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = Yes

[pdf-generator]
comment = PDF Generator (only valid users)
path = /var/tmp
printable = Yes
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "%J" &

[DOCUMENTS]
comment = /home/matthew/Documents
path = /home/matthew/Documents
guest ok = Yes
wide links = No

angelrod 09-10-2003 09:57 AM

You have to add a line to your share like:

writable = yes

And give access to some users:

valid users = user1 user2 user3

collen 09-11-2003 02:52 AM

Or set a guest user, coz in your [DOCUMENTS] share you say
guest ok = yes, but in the [global] you say
map to guest = Bad User..

also make sure you added the right users with smbpasswd.

and ofcoz' you have to make sure the rwx rights are ok for
o/g/w ..


you should make a open share with all permisions wide open
and from there on do some tests with what is ok for you and not.

have fun

Collen

MattLaw 09-11-2003 03:29 AM

Thanks a million, will try


All times are GMT -5. The time now is 03:26 AM.