Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 16:35:40 -0500
From:      "Jeff Jeter" <gsfgf@hotmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   General Disk Questions
Message-ID:  <OE62FmsQSktLxHbHucV00004dfb@hotmail.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0056_01C188AB.3203F5B0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

1)I am running freebsd 4.4 with samba 2.2.0
On boot i mount a MS-DOS drive to /D
When i try to access that drive over the network (from a Win2000 =
machine) i can browse adn read from the drive, but cannot write.  i ran =
chmod -R 777 /D, but still cannot write to the drive.  I tried creating =
a separate share for the drive, but still no write access. What do i =
need to do?

--/etc/fstab--
# Device  Mountpoint FStype Options  Dump Pass#
/dev/ad0s1b  none  swap sw  0 0
/dev/ad0s1a  /  ufs rw  1 1
/dev/ad0s1f  /usr  ufs rw  2 2
/dev/ad0s1e  /var  ufs rw  2 2
/dev/acd0c  /cdrom  cd9660 ro,noauto 0 0
/dev/acd1c  /cdrom1  cd9660 ro,noauto 0 0
proc   /proc  procfs rw  0 0
/dev/ad1s1  /D  msdos rw  0 0 #Disk in question

--/usr/local/stc/smb.conf--
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)=20
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command =
"testparm"
# to check that you have not many any basic syntactic errors.=20
#
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =
Global Settings =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[global]

# workgroup =3D NT-Domain-Name or Workgroup-Name, eg: REDHAT4
   workgroup =3D HOME

# server string is the equivalent of the NT Description field
   server string =3D Main

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow =3D 192.168.1. 192.168.2. 127.

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers =3D yes

# you may wish to override the location of the printcap file
;   printcap name =3D /etc/printcap

# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
;   printcap name =3D lpstat

# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing =3D bsd

# Uncomment this if you want a guest account, you must add this to =
/etc/passwd
# otherwise the user "nobody" is used
;  guest account =3D pcguest

# this tells Samba to use a separate log file for each machine
# that connects
   log file =3D /var/log/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size =3D 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security =3D share
# Use password server option only with security =3D server
;   password server =3D <NT-Server-Name>

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
;  encrypt passwords =3D yes

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include =3D /usr/local/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options =3D TCP_NODELAY=20

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces =3D 192.168.12.2/24 192.168.13.2/24=20

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master =3D no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level =3D 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master =3D yes=20

# Preferred Master causes Samba to force a local browser election on =
startup
# and gives it a slightly higher chance of winning the election
;   preferred master =3D yes

# Use only if you have an NT server on your network that has been
# configured at install time to be a primary domain controller.
;   domain controller =3D <NT-Domain-Controller-SMBName>

# Enable this if you want Samba to be a domain logon server for=20
# Windows95 workstations.=20
;   domain logons =3D yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script =3D %m.bat
# run a specific logon batch file per username
;   logon script =3D %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path =3D \\%L\Profiles\%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS =
Server
;   wins support =3D yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT =
both
;   wins server =3D w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
;   wins proxy =3D yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy =3D no=20

# Client codepage settings

# for Greek users
; client code page=3D737

# for European users (Latin 1)
; client code page=3D850

# for European users (Latin 2)
; client code page=3D852

# for Icelandic users
; client code page=3D861

# for Cyrillic users
; client code page=3D866

# for Japanese Users
; client code page=3D932
; coding system=3Dcap

# for Simplified Chinese Users
; client code page=3D936
; coding system=3Dcap

# for Korean Users
; client code page=3D949
; coding system=3Dcap

# for Traditional Chinese Users
; client code page=3D950
; coding system=3Dcap

guest ok =3D yes
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D Share Definitions =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
;[homes]
;   comment =3D Home Directories
;   browseable =3D no
;   writeable =3D yes

[main]
   comment =3D BSD
   path =3D /
   writeable =3D yes
   browseable =3D yes

# Un-comment the following and create the netlogon directory for Domain =
Logons
; [netlogon]
;   comment =3D Network Logon Service
;   path =3D /usr/local/samba/lib/netlogon
;   guest ok =3D yes
;   writeable =3D no
;   share modes =3D no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path =3D /usr/local/samba/profiles
;    browseable =3D no
;    guest ok =3D yes


# NOTE: If you have a BSD-style print system there is no need to=20
# specifically define each individual printer
;[printers]
;   comment =3D All Printers
;   path =3D /var/spool/samba
;   browseable =3D no
;# Set public =3D yes to allow user 'guest account' to print
;   guest ok =3D no
;   writeable =3D no
;   printable =3D yes
;   public =3D yes

# This one is useful for people to share files
;[tmp]
;   comment =3D Temporary file space
;   path =3D /tmp
;   read only =3D no
;   public =3D yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment =3D Public Stuff
;   path =3D /home/samba
;   public =3D yes
;   writeable =3D yes
;   printable =3D no
;   write list =3D @staff

# Other examples.=20
#
# A private printer, usable only by fred. Spool data will be placed in =
fred's
# home directory. Note that fred must have write access to the spool =
directory,
# wherever it is.
;[fredsprn]
;   comment =3D Fred's Printer
;   valid users =3D fred
;   path =3D /homes/fred
;   printer =3D freds_printer
;   public =3D no
;   writeable =3D no
;   printable =3D yes

# A private directory, usable only by fred. Note that fred requires =
write
# access to the directory.
;[fredsdir]
;   comment =3D Fred's Service
;   path =3D /usr/somewhere/private
;   valid users =3D fred
;   public =3D no
;   writeable =3D yes
;   printable =3D no

# a service which has a different directory for each machine that =
connects
# this allows you to tailor configurations to incoming machines. You =
could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment =3D PC Directories
;  path =3D /usr/pc/%m
;  public =3D no
;  writeable =3D yes

# A publicly accessible directory, read/write to all users. Note that =
all files
# created in the directory by users will be owned by the default user, =
so
# any user with access can delete any other user's files. Obviously this
# directory must be writeable by the default user. Another user could of =
course
# be specified, in which case all files would be owned by that user =
instead.
;[public]
;   path =3D /usr/somewhere/else/public
;   public =3D yes
;   only guest =3D yes
;   writeable =3D yes
;   printable =3D no

# The following two entries demonstrate how to share a directory so that =
two
# users can place files there that will be owned by the specific users. =
In this
# setup, the directory should be writeable by both users and should have =
the
# sticky bit set on it to prevent abuse. Obviously this could be =
extended to
# as many users as required.
;[myshare]
;   comment =3D Mary's and Fred's stuff
;   path =3D /usr/somewhere/shared
;   valid users =3D mary fred
;   public =3D no
;   writeable =3D yes
;   printable =3D no
;   create mask =3D 0765

[D]
   comment =3D D
   path =3D /D
   browseable =3D yes
   writeable =3D yes




2) i have an unformatted IDE drive on a separate IDE card's primary =
channel.  When i try to mount /dev/ad2s1 or /dev/ad2 i get an "unknown =
special file or file system" error.  when i try to fdisk /dev/ad2 or =
fdisk ad2s1, i get a "device not configured error"  how do i access the =
new drive?

------=_NextPart_000_0056_01C188AB.3203F5B0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>1)I am running freebsd 4.4 with samba=20
2.2.0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>On boot i mount a MS-DOS drive to =
/D</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>When i try to access that drive over =
the network=20
(from a Win2000 machine) i can browse adn read from the drive, but =
cannot=20
write.&nbsp; i ran chmod -R 777 /D, but still cannot write to the =
drive.&nbsp; I=20
tried creating a separate share for the drive, but still no write =
access. What=20
do i need to do?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>--/etc/fstab--</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#=20
Device&nbsp;&nbsp;Mountpoint&nbsp;FStype&nbsp;Options&nbsp;&nbsp;Dump&nbs=
p;Pass#<BR>/dev/ad0s1b&nbsp;&nbsp;none&nbsp;&nbsp;swap&nbsp;sw&nbsp;&nbsp=
;0&nbsp;0<BR>/dev/ad0s1a&nbsp;&nbsp;/&nbsp;&nbsp;ufs&nbsp;rw&nbsp;&nbsp;1=
&nbsp;1<BR>/dev/ad0s1f&nbsp;&nbsp;/usr&nbsp;&nbsp;ufs&nbsp;rw&nbsp;&nbsp;=
2&nbsp;2<BR>/dev/ad0s1e&nbsp;&nbsp;/var&nbsp;&nbsp;ufs&nbsp;rw&nbsp;&nbsp=
;2&nbsp;2<BR>/dev/acd0c&nbsp;&nbsp;/cdrom&nbsp;&nbsp;cd9660&nbsp;ro,noaut=
o&nbsp;0&nbsp;0<BR>/dev/acd1c&nbsp;&nbsp;/cdrom1&nbsp;&nbsp;cd9660&nbsp;r=
o,noauto&nbsp;0&nbsp;0<BR>proc&nbsp;&nbsp;&nbsp;/proc&nbsp;&nbsp;procfs&n=
bsp;rw&nbsp;&nbsp;0&nbsp;0<BR>/dev/ad1s1&nbsp;&nbsp;/D&nbsp;&nbsp;msdos&n=
bsp;rw&nbsp;&nbsp;0&nbsp;0=20
#Disk in question</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>--/usr/local/stc/smb.conf--</FONT></DIV>
<DIV><FONT face=3DArial size=3D2># This is the main Samba configuration =
file. You=20
should read the<BR># smb.conf(5) manual page in order to understand the =
options=20
listed<BR># here. Samba has a huge number of configurable options =
(perhaps=20
too<BR># many!) most of which are not shown in this example<BR>#<BR># =
Any line=20
which starts with a ; (semi-colon) or a # (hash) <BR># is a comment and =
is=20
ignored. In this example we will use a #<BR># for commentry and a ; for =
parts of=20
the config file that you<BR># may wish to enable<BR>#<BR># NOTE: =
Whenever you=20
modify this file you should run the command "testparm"<BR># to check =
that you=20
have not many any basic syntactic errors. =
<BR>#<BR>#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=20
Global Settings =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>[global]</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># workgroup =3D NT-Domain-Name or =
Workgroup-Name, eg:=20
REDHAT4<BR>&nbsp;&nbsp; workgroup =3D HOME</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># server string is the equivalent of =
the NT=20
Description field<BR>&nbsp;&nbsp; server string =3D Main</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># This option is important for =
security. It allows=20
you to restrict<BR># connections to machines which are on your local =
network.=20
The<BR># following example restricts access to two C class networks =
and<BR># the=20
"loopback" interface. For more examples of the syntax see<BR># the =
smb.conf man=20
page<BR>;&nbsp;&nbsp; hosts allow =3D 192.168.1. 192.168.2. =
127.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># If you want to automatically load =
your printer=20
list rather<BR># than setting them up individually then you'll need=20
this<BR>&nbsp;&nbsp; load printers =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># you may wish to override the location =
of the=20
printcap file<BR>;&nbsp;&nbsp; printcap name =3D =
/etc/printcap</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># on SystemV system setting printcap =
name to lpstat=20
should allow<BR># you to automatically obtain a printer list from the =
SystemV=20
spool<BR># system<BR>;&nbsp;&nbsp; printcap name =3D lpstat</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># It should not be necessary to specify =
the print=20
system type unless<BR># it is non-standard. Currently supported print =
systems=20
include:<BR># bsd, sysv, plp, lprng, aix, hpux, qnx<BR>;&nbsp;&nbsp; =
printing =3D=20
bsd</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Uncomment this if you want a guest =
account, you=20
must add this to /etc/passwd<BR># otherwise the user "nobody" is =
used<BR>;&nbsp;=20
guest account =3D pcguest</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># this tells Samba to use a separate =
log file for=20
each machine<BR># that connects<BR>&nbsp;&nbsp; log file =3D=20
/var/log/log.%m</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Put a capping on the size of the log =
files (in=20
Kb).<BR>&nbsp;&nbsp; max log size =3D 50</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Security mode. Most people will want =
user level=20
security. See<BR># security_level.txt for details.<BR>&nbsp;&nbsp; =
security =3D=20
share<BR># Use password server option only with security =3D=20
server<BR>;&nbsp;&nbsp; password server =3D =
&lt;NT-Server-Name&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># You may wish to use password =
encryption. Please=20
read<BR># ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba=20
documentation.<BR># Do not enable this option unless you have read those =

documents<BR>;&nbsp; encrypt passwords =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Using the following line enables you =
to customise=20
your configuration<BR># on a per machine basis. The %m gets replaced =
with the=20
netbios name<BR># of the machine that is connecting<BR>;&nbsp;&nbsp; =
include =3D=20
/usr/local/etc/smb.conf.%m</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Most people will find that this =
option gives=20
better performance.<BR># See speed.txt and the manual pages for=20
details<BR>&nbsp;&nbsp; socket options =3D TCP_NODELAY </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Configure Samba to use multiple =
interfaces<BR>#=20
If you have multiple network interfaces then you must list them<BR># =
here. See=20
the man page for details.<BR>;&nbsp;&nbsp; interfaces =3D =
192.168.12.2/24=20
192.168.13.2/24 </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Browser Control Options:<BR># set =
local master to=20
no if you don't want Samba to become a master<BR># browser on your =
network.=20
Otherwise the normal election rules apply<BR>;&nbsp;&nbsp; local master =
=3D=20
no</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># OS Level determines the precedence of =
this server=20
in master browser<BR># elections. The default value should be=20
reasonable<BR>;&nbsp;&nbsp; os level =3D 33</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Domain Master specifies Samba to be =
the Domain=20
Master Browser. This<BR># allows Samba to collate browse lists between =
subnets.=20
Don't use this<BR># if you already have a Windows NT domain controller =
doing=20
this job<BR>;&nbsp;&nbsp; domain master =3D yes </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Preferred Master causes Samba to =
force a local=20
browser election on startup<BR># and gives it a slightly higher chance =
of=20
winning the election<BR>;&nbsp;&nbsp; preferred master =3D =
yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Use only if you have an NT server on =
your network=20
that has been<BR># configured at install time to be a primary domain=20
controller.<BR>;&nbsp;&nbsp; domain controller =3D=20
&lt;NT-Domain-Controller-SMBName&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Enable this if you want Samba to be a =
domain=20
logon server for <BR># Windows95 workstations. <BR>;&nbsp;&nbsp; domain =
logons =3D=20
yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># if you enable domain logons then you =
may want a=20
per-machine or<BR># per user logon script<BR># run a specific logon =
batch file=20
per workstation (machine)<BR>;&nbsp;&nbsp; logon script =3D %m.bat<BR># =
run a=20
specific logon batch file per username<BR>;&nbsp;&nbsp; logon script =3D =

%U.bat</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Where to store roving profiles (only =
for Win95=20
and WinNT)<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %L substitutes =
for=20
this servers netbios name, %U is=20
username<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You must =
uncomment the=20
[Profiles] share below<BR>;&nbsp;&nbsp; logon path =3D <A=20
href=3D"file://\\%L\Profiles\%U">\\%L\Profiles\%U</A></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Windows Internet Name Serving Support =

Section:<BR># WINS Support - Tells the NMBD component of Samba to enable =
it's=20
WINS Server<BR>;&nbsp;&nbsp; wins support =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># WINS Server - Tells the NMBD =
components of Samba=20
to be a WINS Client<BR>#&nbsp;Note: Samba can be either a WINS Server, =
or a WINS=20
Client, but NOT both<BR>;&nbsp;&nbsp; wins server =3D =
w.x.y.z</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># WINS Proxy - Tells Samba to answer =
name=20
resolution queries on<BR># behalf of a non WINS capable client, for this =
to work=20
there must be<BR># at least one&nbsp;WINS Server on the network. The =
default is=20
NO.<BR>;&nbsp;&nbsp; wins proxy =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># DNS Proxy - tells Samba whether or =
not to try to=20
resolve NetBIOS names<BR># via DNS nslookups. The built-in default for =
versions=20
1.9.17 is yes,<BR># this has been changed in version 1.9.18 to=20
no.<BR>&nbsp;&nbsp; dns proxy =3D no </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Client codepage settings</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for Greek users<BR>; client code=20
page=3D737</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for European users (Latin 1)<BR>; =
client code=20
page=3D850</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for European users (Latin 2)<BR>; =
client code=20
page=3D852</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for Icelandic users<BR>; client code=20
page=3D861</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for Cyrillic users<BR>; client code=20
page=3D866</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for Japanese Users<BR>; client code =
page=3D932<BR>;=20
coding system=3Dcap</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for Simplified Chinese Users<BR>; =
client code=20
page=3D936<BR>; coding system=3Dcap</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for Korean Users<BR>; client code =
page=3D949<BR>;=20
coding system=3Dcap</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># for Traditional Chinese Users<BR>; =
client code=20
page=3D950<BR>; coding system=3Dcap</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>guest ok =3D =
yes<BR>#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=20
Share Definitions =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D<BR>;[homes]<BR>;&nbsp;&nbsp;=20
comment =3D Home Directories<BR>;&nbsp;&nbsp; browseable =3D =
no<BR>;&nbsp;&nbsp;=20
writeable =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[main]<BR>&nbsp;&nbsp; comment =3D=20
BSD<BR>&nbsp;&nbsp; path =3D /<BR>&nbsp;&nbsp; writeable =3D =
yes<BR>&nbsp;&nbsp;=20
browseable =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Un-comment the following and create =
the netlogon=20
directory for Domain Logons<BR>; [netlogon]<BR>;&nbsp;&nbsp; comment =3D =
Network=20
Logon Service<BR>;&nbsp;&nbsp; path =3D=20
/usr/local/samba/lib/netlogon<BR>;&nbsp;&nbsp; guest ok =3D =
yes<BR>;&nbsp;&nbsp;=20
writeable =3D no<BR>;&nbsp;&nbsp; share modes =3D no</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR># Un-comment the following to =
provide a=20
specific roving profile share<BR># the default is to use the user's home =

directory<BR>;[Profiles]<BR>;&nbsp;&nbsp;&nbsp; path =3D=20
/usr/local/samba/profiles<BR>;&nbsp;&nbsp;&nbsp; browseable =3D=20
no<BR>;&nbsp;&nbsp;&nbsp; guest ok =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR># NOTE: If you have a BSD-style =
print system=20
there is no need to <BR># specifically define each individual=20
printer<BR>;[printers]<BR>;&nbsp;&nbsp; comment =3D All =
Printers<BR>;&nbsp;&nbsp;=20
path =3D /var/spool/samba<BR>;&nbsp;&nbsp; browseable =3D no<BR>;# Set =
public =3D yes=20
to allow user 'guest account' to print<BR>;&nbsp;&nbsp; guest ok =3D=20
no<BR>;&nbsp;&nbsp; writeable =3D no<BR>;&nbsp;&nbsp; printable =3D=20
yes<BR>;&nbsp;&nbsp; public =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># This one is useful for people to =
share=20
files<BR>;[tmp]<BR>;&nbsp;&nbsp; comment =3D Temporary file =
space<BR>;&nbsp;&nbsp;=20
path =3D /tmp<BR>;&nbsp;&nbsp; read only =3D no<BR>;&nbsp;&nbsp; public =
=3D=20
yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># A publicly accessible directory, but =
read only,=20
except for people in<BR># the "staff" =
group<BR>;[public]<BR>;&nbsp;&nbsp;=20
comment =3D Public Stuff<BR>;&nbsp;&nbsp; path =3D =
/home/samba<BR>;&nbsp;&nbsp;=20
public =3D yes<BR>;&nbsp;&nbsp; writeable =3D yes<BR>;&nbsp;&nbsp; =
printable =3D=20
no<BR>;&nbsp;&nbsp; write list =3D @staff</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># Other examples. <BR>#<BR># A private =
printer,=20
usable only by fred. Spool data will be placed in fred's<BR># home =
directory.=20
Note that fred must have write access to the spool directory,<BR># =
wherever it=20
is.<BR>;[fredsprn]<BR>;&nbsp;&nbsp; comment =3D Fred's =
Printer<BR>;&nbsp;&nbsp;=20
valid users =3D fred<BR>;&nbsp;&nbsp; path =3D =
/homes/fred<BR>;&nbsp;&nbsp; printer=20
=3D freds_printer<BR>;&nbsp;&nbsp; public =3D no<BR>;&nbsp;&nbsp; =
writeable =3D=20
no<BR>;&nbsp;&nbsp; printable =3D yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># A private directory, usable only by =
fred. Note=20
that fred requires write<BR># access to the=20
directory.<BR>;[fredsdir]<BR>;&nbsp;&nbsp; comment =3D Fred's=20
Service<BR>;&nbsp;&nbsp; path =3D =
/usr/somewhere/private<BR>;&nbsp;&nbsp; valid=20
users =3D fred<BR>;&nbsp;&nbsp; public =3D no<BR>;&nbsp;&nbsp; writeable =
=3D=20
yes<BR>;&nbsp;&nbsp; printable =3D no</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># a service which has a different =
directory for=20
each machine that connects<BR># this allows you to tailor configurations =
to=20
incoming machines. You could<BR># also use the %U option to tailor it by =
user=20
name.<BR># The %m gets replaced with the machine name that is=20
connecting.<BR>;[pchome]<BR>;&nbsp; comment =3D PC =
Directories<BR>;&nbsp; path =3D=20
/usr/pc/%m<BR>;&nbsp; public =3D no<BR>;&nbsp; writeable =3D =
yes</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># A publicly accessible directory, =
read/write to=20
all users. Note that all files<BR># created in the directory by users =
will be=20
owned by the default user, so<BR># any user with access can delete any =
other=20
user's files. Obviously this<BR># directory must be writeable by the =
default=20
user. Another user could of course<BR># be specified, in which case all =
files=20
would be owned by that user instead.<BR>;[public]<BR>;&nbsp;&nbsp; path =
=3D=20
/usr/somewhere/else/public<BR>;&nbsp;&nbsp; public =3D =
yes<BR>;&nbsp;&nbsp; only=20
guest =3D yes<BR>;&nbsp;&nbsp; writeable =3D yes<BR>;&nbsp;&nbsp; =
printable =3D=20
no</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2># The following two entries demonstrate =
how to=20
share a directory so that two<BR># users can place files there that will =
be=20
owned by the specific users. In this<BR># setup, the directory should be =

writeable by both users and should have the<BR># sticky bit set on it to =
prevent=20
abuse. Obviously this could be extended to<BR># as many users as=20
required.<BR>;[myshare]<BR>;&nbsp;&nbsp; comment =3D Mary's and Fred's=20
stuff<BR>;&nbsp;&nbsp; path =3D /usr/somewhere/shared<BR>;&nbsp;&nbsp; =
valid users=20
=3D mary fred<BR>;&nbsp;&nbsp; public =3D no<BR>;&nbsp;&nbsp; writeable =
=3D=20
yes<BR>;&nbsp;&nbsp; printable =3D no<BR>;&nbsp;&nbsp; create mask =3D=20
0765</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[D]<BR>&nbsp;&nbsp; comment =3D =
D<BR>&nbsp;&nbsp;=20
path =3D /D<BR>&nbsp;&nbsp; browseable =3D yes<BR>&nbsp;&nbsp; writeable =
=3D=20
yes<BR></DIV>
<DIV><BR></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2) i have an unformatted IDE drive on a =
separate=20
IDE card's primary channel.&nbsp; When i try to mount /dev/ad2s1 or =
/dev/ad2 i=20
get an "unknown special file or file system" error.&nbsp; when i try to =
fdisk=20
/dev/ad2 or fdisk ad2s1, i get a "device not configured error"&nbsp; how =
do i=20
access the new drive?</FONT></DIV></BODY></HTML>

------=_NextPart_000_0056_01C188AB.3203F5B0--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE62FmsQSktLxHbHucV00004dfb>