[c_lug] Re: [C_LUG] Networking between Windows and Ubuntu

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2010 : Group Archive : Group : All Groups

From: Joseph <ragweed@...>
Date: Tue, 23 Mar 2010 17:05:20 -0500
Kelly Williams wrote:

> _Installing Samba – Building Simple Workgroup server_
>
> _ _
>
> 1.   After you installed your system
>
> 2.   Login in to your system
>
> 3.   Go to terminal In terminal type the following into terminal. The 
> rest of work will be done in terminal.
>
> 4.   *sudo apt-get install swat*
>
> 5.   *sudo cp /etc/samba/smb.conf /etc/samba/smb.conf~*
>
> 6.   *sudo nano /etc/samba/smb.conf*
>
> 7.   To setup your server for a network server.
>            [name of share]
>                    path = /path/to/share
>                    valid user = username
>                    read only = no
>                    browsable = yes
>                    writable = yes
>
> 8.   Restart samba
>            * sudo /etc/init.d/samba restart
>
> 9.  *smbpasswd -a username
>
>
>
>
> *
>
> 10.                     If server can't be seen on the network  
>                           *sudo   testparm
>
>  
>
>
>
> On Tue, Mar 23, 2010 at 2:04 PM, Joseph <ragweed@... 
> <mailto:ragweed@...>> wrote:
>
>
>     The first machine is an Ubuntu 9.1  The second is a Windows Vista...
>
>     How do I network between the two?  I may need all the details
>     possible, please.  :)
>
>
>     Joseph
>
>     --
>     To unsubscribe, send ANY email message to
>     c_lug-unsubscribe@...
>     <mailto:c_lug-unsubscribe@...>
>
>
>
> --
> To unsubscribe, send ANY email message to 
> c_lug-unsubscribe@... <mailto:c_lug-unsubscribe@...>
>
>
After step 5, I get this:

jlsnurr@jlsnurr-den:~$ sudo apt-get install swat
[sudo] password for jlsnurr:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
  libopenal1 mozilla-traybiff-common linux-headers-2.6.31-14 amarok-common
  kdemultimedia-kio-plugins libkcddb4 libboost-thread1.38.0 libamrnb3
  libboost-date-time1.38.0 libqtscript4-core blt libamrwb3 python-tk
  libqtscript4-gui libqtscript4-uitools tcl8.5 libqtscript4-sql
  libqtscript4-xml tk8.5 libtag-extras1 liblastfm0 gnash-common
  linux-headers-2.6.31-14-generic amarok-utils libqtscript4-network
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  openbsd-inetd samba samba-doc
Suggested packages:
  smbldap-tools ldb-tools samba-doc-pdf
The following NEW packages will be installed:
  openbsd-inetd samba samba-doc swat
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.2MB of archives.
After this operation, 39.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com karmic-updates/main samba 
2:3.4.0-3ubuntu5.5 [6,242kB]
Get:2 http://us.archive.ubuntu.com karmic-updates/main samba-doc 
2:3.4.0-3ubuntu5.5 [8,001kB]
Get:3 http://us.archive.ubuntu.com karmic/main openbsd-inetd 
0.20080125-2ubuntu1 [37.2kB]
Get:4 http://us.archive.ubuntu.com karmic-updates/universe swat 
2:3.4.0-3ubuntu5.5 [1,904kB]
Fetched 16.2MB in 19s 
(844kB/s)                                               
Preconfiguring packages ...
Selecting previously deselected package samba.
(Reading database ... 318903 files and directories currently installed.)
Unpacking samba (from .../samba_2%3a3.4.0-3ubuntu5.5_i386.deb) ...
Selecting previously deselected package samba-doc.
Unpacking samba-doc (from .../samba-doc_2%3a3.4.0-3ubuntu5.5_all.deb) ...
Selecting previously deselected package openbsd-inetd.
Unpacking openbsd-inetd (from 
.../openbsd-inetd_0.20080125-2ubuntu1_i386.deb) ...
Selecting previously deselected package swat.
Unpacking swat (from .../swat_2%3a3.4.0-3ubuntu5.5_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ufw ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for doc-base ...
Processing 4 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up samba (2:3.4.0-3ubuntu5.5) ...
update-alternatives: using /usr/bin/smbstatus.samba3 to provide 
/usr/bin/smbstatus (smbstatus) in auto mode.
Generating /etc/default/samba...
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/passdb.tdb file.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password 
length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password 
history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon 
to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum 
password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum 
password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout 
duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count 
minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout 
attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect 
time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine 
password change), returning 0
Importing account for nobody...ok
Importing account for jlsnurr...ok
 * Starting Samba daemons                                                
[ OK ]

Setting up samba-doc (2:3.4.0-3ubuntu5.5) ...
Setting up openbsd-inetd (0.20080125-2ubuntu1) ...
 * Stopping internet superserver inetd                                   
[ OK ]
 * Not starting internet superserver: no services enabled

Setting up swat (2:3.4.0-3ubuntu5.5) ...

jlsnurr@jlsnurr-den:~$ sudo cp /etc/samba/smb.conf
cp: missing destination file operand after `/etc/samba/smb.conf'
Try `cp --help' for more information.
jlsnurr@jlsnurr-den:~$ b4icur12
b4icur12: command not found
jlsnurr@jlsnurr-den:~$ sudo cp /etc/samba/smb.conf~
cp: missing destination file operand after `/etc/samba/smb.conf~'
Try `cp --help' for more information.
jlsnurr@jlsnurr-den:~$


It appears that I need something more to that command line.