LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help a noob with samba! get good karma and free money* (http://www.linuxquestions.org/questions/linux-newbie-8/help-a-noob-with-samba-get-good-karma-and-free-money%2A-158361/)

Tendernuts 03-16-2004 07:24 AM

Help a noob with samba! get good karma and free money*
 
*one part of this statement not true :)

OK then I've played about with samba but i'm stuck now.... I've read a couple of howto's and to be fair understood most of it but i'm still no wiser. I have a drive on my Linux Box (Mandrake 9.2) that i want to share with the windo$e boxes in the house (XP Pro mainly). Now the windo$e boxes can see the machine but cant see the shared drive. What do I need to add to the conf files to get it to work? the drive i need to share is /mnt/storage/ and all the folders files beneath it and it could do with being read write......

Ta in advance

Al (Noob)

Peacedog 03-16-2004 07:33 AM

may we have a look at your /etc/samba/smb.conf? have you created valid users

smbpasswd -a username

if everything has been setup properly, it shouldn't be tough to share a directory.

[storage]
comment = storage
path = /mnt/storage
public = yes
browsable = yes
writeable = yes

hope that helps.
good luck.

Tendernuts 03-16-2004 08:01 AM

ahh a man who speaks sense i will try this as soon as i get back to that machine i'll keep you informed
Al

Tendernuts 03-16-2004 04:51 PM

it looks like this:

;*******************section global*****************
[global]
workgroup = linux
server string = LINUXBOX
printcap name = cups
load printers = yes
printing = cups
printer admin = @adm
log file = /var/log/samba/log.%m
max log size = 50
map to guest = bad user
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
;*******************section homes*****************
[homes]
comment = Home Directories
browseable = True
writable = no
;*******************section printers*****************
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
writable = no
printable = yes
create mode = 0700
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
;*******************section print$*****************
[print$]
path = /var/lib/samba/printers
browseable = yes
read only = yes
write list = @adm root
guest ok = yes
;*******************section pdf-generator*****************
[pdf-generator]
path = /var/tmp
guest ok = No
printable = Yes
comment = PDF Generator (only valid users)
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I &
;*******************section pdf-screen*****************
[pdf-screen]
copy = pdf-generator
comment = PDF Generator - Screen quality (only valid users)
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
;*******************section pdf-printer*****************
[pdf-printer]
copy = pdf-generator
comment = PDF Generator - Print quality (only valid users)
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
;*******************section pdf-prepress*****************
[pdf-prepress]
copy = pdf-generator
comment = PDF Generator - PrePress quality (only valid users)
print command = /usr/share/samba/scripts/print-pdf %s ~%u //%L/%u %m %I "" %S &
;***********************storage?**************************
[storage]
comment = storage
path = /mnt/storage
public = yes
browsable = yes
writeable = ye

Tendernuts 03-16-2004 05:01 PM

w00t an indeed yay it worked..... Thank you very much! Does tis mean I'm not a n00b anymore? ;)

Peacedog 03-16-2004 05:31 PM

your welcome. we are all noobs in one way or another. there's always something new to learn.
good luck.


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