LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-25-2007, 12:37 PM   #1
larryg
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
Windoze Back Up


Greetings
This is my first post here so please bear with me. I'm kinda new and unexperienced in Linux networking so I'm soliciting suggestions on how to use an empty, unused partition on my Linux (Mandriva 2007 / KDE) box as backup space for a seperate windoze machine. My network is a Belkin 54G wifi.
 
Old 10-25-2007, 03:33 PM   #2
bjagee
Member
 
Registered: Jan 2007
Location: Portland, OR
Distribution: Ubuntu Jaunty / Fedora
Posts: 39

Rep: Reputation: 15
Depending on how crazy you want to get, you could just use it as a drive ( mount it with Samba and it looks like any other windows share) or you could set up BackupPC which would minimize disk usage and bandwidth (especially helpful on wireless) and provide automagic backup for multiple pcs.
 
Old 10-25-2007, 05:47 PM   #3
larkl
Member
 
Registered: Sep 2007
Distribution: Puppy 5.2.8
Posts: 69

Rep: Reputation: 15
You could share the drive using samba and then run backups from the windows box. You could use smbclient on the linux box to "pull" the files from the windows PC. YOu could mount the windows drive and use rsync to copy the files.
 
Old 10-26-2007, 08:12 AM   #4
larryg
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the suggestions. I attempted last night to go the Samba route. I'm certainly no Samba master, but after much googling and research I did come up with a smb.conf that I thought should have worked. The windows machine sees the linux box in Net Neighborhood but when I try to access it - it gives "Mandrake is not accessible. The server is not configured for transactions". Here is a copy of my smb.conf. Thanks again for your help.


#======================= Global Settings =====================================
[global]
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
strict locking = no
guest ok = yes
username map = /etc/samba/user.map
map to guest = bad user
case sensitive = no
printcap cache time = 60root = administrator admin
dns proxy = no
netbios name = Mandrake
locking = no
writable = yes
server string = Samba Server %v
default = homes
path = /home/
msdfs proxy = no
username = larryg
workgroup = MIDNIGHT
os level = 20
printcap name = cups
valid users = larryg
security = share
max log size = 50
# You can enable VFS recycle bin and on-access virus-scanning on a per
# share basis:
# Uncomment the next 2 lines (make sure you create a .recycle folder in
# the base of the share and ensure all users will have write access to it.
# For virus scanning, install samba-vscan-clamav and ensure the clamd service
# is running
# vfs objects = vscan-clamav recycle
# vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

# Un-comment the following and create the netlogon directory for Domain Logons
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# guest ok = yes
# writable = no

#Uncomment the following 2 lines if you would like your login scripts to
#be created dynamically by ntlogon (check that you have it in the correct
#location (the default of the ntlogon rpm available in contribs)
#root preexec = /usr/bin/ntlogon -u '%u' -g '%g' -o %a -d /var/lib/samba/netlogon/
#root postexec = rm -f '/var/lib/samba/netlogon/%u.bat'

# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
#[Profiles]
# path = /var/lib/samba/profiles
# browseable = no
# guest ok = yes
# writable = yes
# This script can be enabled to create profile directories on the fly
# You may want to turn off guest acces if you enable this, as it
# hasn't been thoroughly tested.
#root preexec = PROFILE='/var/lib/samba/profiles/%u'; if [ ! -e $PROFILE ]; # then mkdir -pm700 $PROFILE; chown '%u':'%g' $PROFILE;fi
# If you want read-only profiles, fake permissions so windows clients think
# they have written to the files
# vfs objects = fake_perms

# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
# You must configure the samba printers with the appropriate Windows
# drivers on your Windows clients or upload the printer driver to the
# server from Windows (NT/2000/XP). On the Samba server no filtering is
# done. If you wish that the server provides the driver and the clients
# send PostScript ("Generic PostScript Printer" under Windows), you have
# to use 'printcap name = cups' or swap the 'print command' line below
# with the commented one. Note that print commands only work if not using
# 'printing=cups'
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
read only = yes
printable = yes
create mask = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
# print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
# If you install drivers on the server, you will want to uncomment this so
# clients request the driver
use client driver = yes

# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
#
# A special case is using the CUPS Windows Postscript driver, which allows
# all features available via CUPS on the client, by publishing the ppd file
# and the cups driver by using the 'cupsaddsmb' tool. This requires the
# installation of the CUPS driver (http://www.cups.org/windows.php)
# on the server, but doesn't require you to use Windows at all :-).
[print$]
path = /var/lib/samba/printers
write list = @adm root
inherit permissions = yes
# Settings suitable for Winbind:
# write list = @"Domain Admins" root
# force group = +@"Domain Admins"

# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.
# Note that this only works if 'printing' is *not* set to 'cups'

[pdf-gen]
path = /tmp
printable = Yes

# A share allowing administrators to set ACLs on, or access for backup purposes
# all files (as root).
#[admin]
# path = /
# admin users = @"Domain Admins"
# valid users = @"Domain Admins"
# browseable = no
# writeable = yes

# This one is useful for people to share files
;[tmp]
comment = Temporary Folder
printing = bsd
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
[Windows]
path = /Windows
comment = Windows BackUp
browseable = yes
public = yes
writable = yes
[homes]
path =/home
comment = Home Directories
browseable = yes
public = yes
writable = yes
 
Old 10-26-2007, 12:41 PM   #5
bjagee
Member
 
Registered: Jan 2007
Location: Portland, OR
Distribution: Ubuntu Jaunty / Fedora
Posts: 39

Rep: Reputation: 15
Can you post the contents of the samba log?
 
Old 10-26-2007, 05:47 PM   #6
larkl
Member
 
Registered: Sep 2007
Distribution: Puppy 5.2.8
Posts: 69

Rep: Reputation: 15
I'm not sure that using share level security is the best, it's up to you. I've always used user level security and added the user login (it should match the windows logon & password) using smbpasswd -a <user>. I'm not expert on share level security, so take this with a grain of salt.
 
Old 10-27-2007, 09:45 AM   #7
larryg
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
bjagee - I looked over the samba log and saw that it seemed to be having trouble with the CUPS server so I deleted it from the samba shares via webmin - resarted the server, rebooted windows and it's still saying "Mandrake not accessible. The server is not configured for transactions".
Anyway - here's a copy of the log and also a fresh copy of samba.conf. Again - thanks for the help.

[2007/10/26 08:56:33, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/26 08:56:33, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/26 09:08:37, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/26 09:08:37, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/26 09:10:33, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/26 09:10:33, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/27 04:24:49, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/27 04:24:49, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/27 09:29:14, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused
[2007/10/27 09:29:14, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused


smb.conf
#======================= Global Settings =====================================
[global]
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
strict locking = no
guest ok = yes
username map = /etc/samba/user.map
map to guest = bad user
case sensitive = no
printcap cache time = 60root = administrator admin
dns proxy = no
netbios name = Mandrake
locking = no
writable = yes
server string = Samba Server %v
default = homes
path = /home/
msdfs proxy = no
username = larryg
workgroup = MIDNIGHT
os level = 20
printcap name = cups
valid users = larryg
security = share
max log size = 50
# You can enable VFS recycle bin and on-access virus-scanning on a per
# share basis:
# Uncomment the next 2 lines (make sure you create a .recycle folder in
# the base of the share and ensure all users will have write access to it.
# For virus scanning, install samba-vscan-clamav and ensure the clamd service
# is running
# vfs objects = vscan-clamav recycle
# vscan-clamav: config-file = /etc/samba/vscan-clamav.conf

# Un-comment the following and create the netlogon directory for Domain Logons
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# guest ok = yes
# writable = no

#Uncomment the following 2 lines if you would like your login scripts to
#be created dynamically by ntlogon (check that you have it in the correct
#location (the default of the ntlogon rpm available in contribs)
#root preexec = /usr/bin/ntlogon -u '%u' -g '%g' -o %a -d /var/lib/samba/netlogon/
#root postexec = rm -f '/var/lib/samba/netlogon/%u.bat'

# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
#[Profiles]
# path = /var/lib/samba/profiles
# browseable = no
# guest ok = yes
# writable = yes
# This script can be enabled to create profile directories on the fly
# You may want to turn off guest acces if you enable this, as it
# hasn't been thoroughly tested.
#root preexec = PROFILE='/var/lib/samba/profiles/%u'; if [ ! -e $PROFILE ]; # then mkdir -pm700 $PROFILE; chown '%u':'%g' $PROFILE;fi
# If you want read-only profiles, fake permissions so windows clients think
# they have written to the files
# vfs objects = fake_perms

# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
# You must configure the samba printers with the appropriate Windows
# drivers on your Windows clients or upload the printer driver to the
# server from Windows (NT/2000/XP). On the Samba server no filtering is
# done. If you wish that the server provides the driver and the clients
# send PostScript ("Generic PostScript Printer" under Windows), you have
# to use 'printcap name = cups' or swap the 'print command' line below
# with the commented one. Note that print commands only work if not using
# 'printing=cups'

[Windows]
path = /Windows
comment = Windows BackUp
browseable = yes
public = yes
writable = yes
[homes]
path =/home
comment = Home Directories
browseable = yes
public = yes
writable = yes
 
Old 10-28-2007, 05:26 AM   #8
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
I prefer rsync instead of Samba share.
u can get cwrsync for MS windows :
http://itefix.no/cwrsync/

good luck
 
Old 10-29-2007, 12:30 AM   #9
bjagee
Member
 
Registered: Jan 2007
Location: Portland, OR
Distribution: Ubuntu Jaunty / Fedora
Posts: 39

Rep: Reputation: 15
Could you try adding the setting below to your .conf, restarting, and then reposting your logs if different?

Code:
 log level = 5
Samba defaults to a log level 1 (pretty quiet) but can be set up to 10 (extremely verbose). You can play with that to see if it spits out anything useful.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where did windoze go...? deft Linux - General 9 01-24-2008 11:33 PM
Cant get windoze barrythai Mandriva 1 04-12-2007 01:14 PM
say no to windoze php_junkie LinuxQuestions.org Member Intro 1 03-14-2006 09:59 AM
see windoze? jtravnick Linux - Networking 1 02-27-2006 07:38 AM
Windoze??? doublejoon General 4 06-24-2004 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration