From owner-freebsd-questions Wed Dec 19 13:36:42 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (oe62.pav2.hotmail.com [64.4.36.196]) by hub.freebsd.org (Postfix) with ESMTP id F1CE637B405 for ; Wed, 19 Dec 2001 13:35:38 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 19 Dec 2001 13:35:38 -0800 X-Originating-IP: [66.32.78.158] From: "Jeff Jeter" To: "FreeBSD Questions" Subject: General Disk Questions Date: Wed, 19 Dec 2001 16:35:40 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0056_01C188AB.3203F5B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 Message-ID: X-OriginalArrivalTime: 19 Dec 2001 21:35:38.0894 (UTC) FILETIME=[1A039AE0:01C188D5] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 # 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 # 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
1)I am running freebsd 4.4 with samba=20 2.2.0
On boot i mount a MS-DOS drive to = /D
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.  i ran chmod -R 777 /D, but still cannot write to the = drive.  I=20 tried creating a separate share for the drive, but still no write = access. What=20 do i need to do?
 
--/etc/fstab--
#=20 Device  Mountpoint FStype Options  Dump&nbs= p;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,noaut= o 0 0
/dev/acd1c  /cdrom1  cd9660 r= o,noauto 0 0
proc   /proc  procfs&n= bsp;rw  0 0
/dev/ad1s1  /D  msdos&n= bsp;rw  0 0=20 #Disk in question
 
--/usr/local/stc/smb.conf--
# This is the main Samba configuration = file. You=20 should read the
# smb.conf(5) manual page in order to understand the = options=20 listed
# here. Samba has a huge number of configurable options = (perhaps=20 too
# many!) most of which are not shown in this example
#
# = Any line=20 which starts with a ; (semi-colon) or a # (hash)
# is a comment and = is=20 ignored. In this example we will use a #
# for commentry and a ; for = parts of=20 the config file that you
# may wish to enable
#
# NOTE: = Whenever you=20 modify this file you should run the command "testparm"
# to check = that you=20 have not many any basic syntactic errors. =
#
#=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
[global]
 
# workgroup =3D NT-Domain-Name or = Workgroup-Name, eg:=20 REDHAT4
   workgroup =3D HOME
 
# server string is the equivalent of = the NT=20 Description field
   server string =3D Main
 
# This option is important for = security. It allows=20 you to restrict
# connections to machines which are on your local = network.=20 The
# following example restricts access to two C class networks = and
# the=20 "loopback" interface. For more examples of the syntax see
# the = smb.conf man=20 page
;   hosts allow =3D 192.168.1. 192.168.2. = 127.
 
# If you want to automatically load = your printer=20 list rather
# than setting them up individually then you'll need=20 this
   load printers =3D yes
 
# you may wish to override the location = of the=20 printcap file
;   printcap name =3D = /etc/printcap
 
# on SystemV system setting printcap = name to lpstat=20 should allow
# you to automatically obtain a printer list from the = SystemV=20 spool
# system
;   printcap name =3D lpstat
 
# It should not be necessary to specify = the print=20 system type unless
# it is non-standard. Currently supported print = systems=20 include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   = printing =3D=20 bsd
 
# Uncomment this if you want a guest = account, you=20 must add this to /etc/passwd
# otherwise the user "nobody" is = used
; =20 guest account =3D pcguest
 
# this tells Samba to use a separate = log file for=20 each machine
# that connects
   log file =3D=20 /var/log/log.%m
 
# Put a capping on the size of the log = files (in=20 Kb).
   max log size =3D 50
 
# Security mode. Most people will want = user level=20 security. See
# security_level.txt for details.
   = security =3D=20 share
# Use password server option only with security =3D=20 server
;   password server =3D = <NT-Server-Name>
 
# You may wish to use password = encryption. Please=20 read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba=20 documentation.
# Do not enable this option unless you have read those = documents
;  encrypt passwords =3D yes
 
# Using the following line enables you = to customise=20 your configuration
# on a per machine basis. The %m gets replaced = with the=20 netbios name
# of the machine that is connecting
;   = include =3D=20 /usr/local/etc/smb.conf.%m
 
# Most people will find that this = option gives=20 better performance.
# See speed.txt and the manual pages for=20 details
   socket options =3D TCP_NODELAY
 
# Configure Samba to use multiple = interfaces
#=20 If you have multiple network interfaces then you must list them
# = here. See=20 the man page for details.
;   interfaces =3D = 192.168.12.2/24=20 192.168.13.2/24
 
# Browser Control Options:
# set = local master to=20 no if you don't want Samba to become a master
# browser on your = network.=20 Otherwise the normal election rules apply
;   local master = =3D=20 no
 
# OS Level determines the precedence of = this server=20 in master browser
# elections. The default value should be=20 reasonable
;   os level =3D 33
 
# Domain Master specifies Samba to be = the Domain=20 Master Browser. This
# allows Samba to collate browse lists between = subnets.=20 Don't use this
# if you already have a Windows NT domain controller = doing=20 this job
;   domain master =3D yes
 
# Preferred Master causes Samba to = force a local=20 browser election on startup
# and gives it a slightly higher chance = of=20 winning the election
;   preferred master =3D = yes
 
# Use only if you have an NT server on = your network=20 that has been
# configured at install time to be a primary domain=20 controller.
;   domain controller =3D=20 <NT-Domain-Controller-SMBName>
 
# Enable this if you want Samba to be a = domain=20 logon server for
# Windows95 workstations.
;   domain = logons =3D=20 yes
 
# if you enable domain logons then you = may want a=20 per-machine or
# per user logon script
# run a specific logon = batch file=20 per workstation (machine)
;   logon script =3D %m.bat
# = run a=20 specific logon batch file per username
;   logon script =3D = %U.bat
 
# Where to store roving profiles (only = for Win95=20 and WinNT)
#        %L substitutes = for=20 this servers netbios name, %U is=20 username
#        You must = uncomment the=20 [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=20 WINS Server
;   wins support =3D yes
 
# WINS Server - Tells the NMBD = components of Samba=20 to be a WINS Client
# Note: Samba can be either a WINS Server, = or a WINS=20 Client, but NOT both
;   wins server =3D = w.x.y.z
 
# WINS Proxy - Tells Samba to answer = name=20 resolution queries on
# behalf of a non WINS capable client, for this = to work=20 there must be
# at least one WINS Server on the network. The = default is=20 NO.
;   wins proxy =3D yes
 
# DNS Proxy - tells Samba whether or = not to try to=20 resolve NetBIOS names
# via DNS nslookups. The built-in default for = versions=20 1.9.17 is yes,
# this has been changed in version 1.9.18 to=20 no.
   dns proxy =3D no
 
# Client codepage settings
 
# for Greek users
; client code=20 page=3D737
 
# for European users (Latin 1)
; = client code=20 page=3D850
 
# for European users (Latin 2)
; = client code=20 page=3D852
 
# for Icelandic users
; client code=20 page=3D861
 
# for Cyrillic users
; client code=20 page=3D866
 
# for Japanese Users
; client code = page=3D932
;=20 coding system=3Dcap
 
# for Simplified Chinese Users
; = client code=20 page=3D936
; coding system=3Dcap
 
# for Korean Users
; client code = page=3D949
;=20 coding system=3Dcap
 
# for Traditional Chinese Users
; = client code=20 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=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
;[homes]
;  =20 comment =3D Home Directories
;   browseable =3D = no
;  =20 writeable =3D yes
 
[main]
   comment =3D=20 BSD
   path =3D /
   writeable =3D = yes
  =20 browseable =3D yes
 
# Un-comment the following and create = the netlogon=20 directory for Domain Logons
; [netlogon]
;   comment =3D = Network=20 Logon Service
;   path =3D=20 /usr/local/samba/lib/netlogon
;   guest ok =3D = yes
;  =20 writeable =3D no
;   share modes =3D no
 

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

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

 
2) i have an unformatted IDE drive on a = separate=20 IDE card's primary channel.  When i try to mount /dev/ad2s1 or = /dev/ad2 i=20 get an "unknown special file or file system" error.  when i try to = fdisk=20 /dev/ad2 or fdisk ad2s1, i get a "device not configured error"  how = do i=20 access the new drive?
------=_NextPart_000_0056_01C188AB.3203F5B0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message