Re: [Samba] /etc/fstab and windows share problem

2007-03-07 Thread Chris Smith
On Wednesday 07 March 2007, Dariusz Trzaska wrote:
> >Try replacing spaces with "\040".
>
> Thx for the reply, but it doesn't work :/

Works here when using cifs (not with smbfs):

//win/My\040Book\040(J) /media/MyBook cifs ...

Possibly influenced by character set (using utf8 here)?

Chris
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] /etc/fstab and windows share problem

2007-03-07 Thread Dariusz Trzaska

>On Tuesday 06 March 2007, Dariusz Trzaska wrote:
>> The problem is with the disk label, as it contains three strings: 
>>"My","Book" and "(J)".


>Try replacing spaces with "\040".

>Chris

Thx for the reply, but it doesn't work :/
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] /etc/fstab and windows share problem

2007-03-07 Thread Miguel Da Silva - Centro de Matemática

Dariusz Trzaska escreveu:

Hi,
I`ve got a problem with samba and /etc/fstab.
I have a second computer running Windows XP SP2 with Western Digital 
MyBook USB2 external hard disk attached. The Disk is shared over windows 
network with a label "My Book (J)".
I can manually mount this samba resource by typing "sudo mount -t smbfs 
-o fmask=777,dmask=777,guest '//win/My Book (J)' /media/MyBook", but I 
can't figure out how to mount it by using fstab...
The problem is with the disk label, as it contains three strings: "My", 
"Book" and "(J)".


I tried:
//win/My Book (J) /media/MyBook smbfs guest,dmask=777,fmask=777 0 0
and
'//win/My Book (J)' /media/MyBook smbfs guest,dmask=777,fmask=777 0 0

I also tried replacing ' with " but nothing has changed.

PS. Windows doesn't allow me to share the disk with one-word label... 
the ... (J) is always there.


Plz someone help me,
SaneOne


Are you using some mount daemon like autofs? If not, you could (like a 
last option) make a Bash script to mount this share when system boots.


I don't remember very well if /etc/fstab accept this "kind" of file 
system name to mount.


Good luck.
--
Miguel Da Silva
Administrador de Red
Centro de Matemática - http://www.cmat.edu.uy
Facultad de Ciencias - http://www.fcien.edu.uy
Universidad de la República - http://www.rau.edu.uy
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] /etc/fstab and windows share problem

2007-03-06 Thread Chris Smith
On Tuesday 06 March 2007, Dariusz Trzaska wrote:
> The problem is with the disk label, as it contains three strings: "My",
> "Book" and "(J)".

Try replacing spaces with "\040".

Chris
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] /etc/fstab

2002-09-20 Thread Axel Heinrici

Hi
On Friday 20 September 2002 12:23, Frank Matthieß wrote:
> Freitag den 20.09.2002 um 11:26 CEST  +0200, schrieb Axel 
Heinrici:

> >
> > What do you mean by this? I really do not understand. A few
> > days ago I compiled samba-2.2.5. There is a configure option to
> > also compile smbmount.
>
> Do you compile with smbmount?
>
> If you do so, read the manpage of mount:
>
> -t vfstype
>   ...
> For  most  types all the mount program has to do is
> issue  a  simple  mount(2)  system  call,  and   no
> detailed   knowledge  of  the  filesystem  type  is
> required.  For  a  few  types  however  (like  nfs,
> smbfs,  ncpfs) ad hoc code is necessary. The nfs ad
> hoc code is built in, but smbfs and  ncpfs  have  a
> separate  mount program. In order to make it possi­
> ble to treat all types in a uniform way, mount will
> execute   the  program  /sbin/mount.TYPE  (if  that
> exists) when called with type TYPE.  Since  various
> versions  of  the  smbmount  program have different
> calling conventions, /sbin/mount.smb may have to be
> a shell script that sets up the desired call.
>   ...
>
>
I know this.

> fm@fortytwo:~$ ls -l /sbin/mount.smb*
> lrwxrwxrwx1 root root  17 06-28 08:05 /sbin/mount.smb ->
> /usr/bin/smbmount lrwxrwxrwx1 root root  17 06-28 08:05
> /sbin/mount.smbfs -> /usr/bin/smbmount
>
The "make install" of the samba2.2.5 tarball sets this up in a 
correct way. 
The path of the samba binaries is now/usr/local/samba/bin/. And so 
is the link /sbin/mount.smbfs.

> > This may cause problems. At startup "mount -a" is called before
> > network is up (at least in some distributions). So better add
> > the "noauto"-option and mount the specific share later (after
> > network coming up) by a separate skript.
>
> I prefer debian systems. debian mount all local fs'es first.
> After startup of networking, they setup the remote fs'es.

SuSE is not so clever concerning this issue. I got some error 
messages by doing it that way. 

greetings
Axel
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] /etc/fstab

2002-09-20 Thread Bob Crandell

cj ([EMAIL PROTECTED]) wrote*:
>
>G'day all
>Is it possible to get fstab to mount a samba share?
>I see it can mount nfs shares, but I need to know about samba shares
>
>Thanks
>
# In /etc/fstab
# To mount a public share
//ocicat/Public /mnt/Public smbfs
username=pcguest,password=password,uid=pcguest,gid=users,rw
# To mount a private share
//ocicat/home /home/bob/Data smbfs
noauto,username=bob,password=password,uid=bob,gid=users,rw

# In /etc/profile
# To login
if [ -e ~/Data ]; then
   sudo mount ~/Data
fi
# To logout
trap "sudo /bin/umount ~/Data; /usr/bin/clear" EXIT

# In /etc/sudoers
bob ALL=(ALL) NOPASSWD: ALL

In my case, this isn't a problem but you don't want to do this in production because
of security.  I'm trying to figure out how to do this without having to use sudo.

I hope this is what you were asking.
--
Bob Crandell
Assured Computing
When you need to be sure.
Voice 541-689-9159
FAX   240-371-7237
[EMAIL PROTECTED]
www.assuredcomp.com
Eugene, Or. 97402


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] /etc/fstab

2002-09-20 Thread Frank Matthieß

Freitag den 20.09.2002 um 11:26 CEST  +0200, schrieb Axel Heinrici:
> Hi
> 
> On Friday 20 September 2002 09:52, Frank Matthieß wrote:
> >
> > Try smbfs. On Linux you have to setup a kernel with smb
> > filesystem support. You need smbmount smbumount, which are in the
> > "smbfs" packet on debian systems.
> >
> > The packet information give me the hint, that this is out of the
> > samba source.
> 
> What do you mean by this? I really do not understand. A few days 
> ago I compiled samba-2.2.5. There is a configure option to also 
> compile smbmount.  

Do you compile with smbmount?

If you do so, read the manpage of mount:

-t vfstype
...
For  most  types all the mount program has to do is
issue  a  simple  mount(2)  system  call,  and   no
detailed   knowledge  of  the  filesystem  type  is
required.  For  a  few  types  however  (like  nfs,
smbfs,  ncpfs) ad hoc code is necessary. The nfs ad
hoc code is built in, but smbfs and  ncpfs  have  a
separate  mount program. In order to make it possi­
ble to treat all types in a uniform way, mount will
execute   the  program  /sbin/mount.TYPE  (if  that
exists) when called with type TYPE.  Since  various
versions  of  the  smbmount  program have different
calling conventions, /sbin/mount.smb may have to be
a shell script that sets up the desired call.
...


fm@fortytwo:~$ ls -l /sbin/mount.smb*
lrwxrwxrwx1 root root  17 06-28 08:05 /sbin/mount.smb -> /usr/bin/smbmount
lrwxrwxrwx1 root root  17 06-28 08:05 /sbin/mount.smbfs -> /usr/bin/smbmount

> This may cause problems. At startup "mount -a" is called before 
> network is up (at least in some distributions). So better add the 
> "noauto"-option and mount the specific share later (after network 
> coming up) by a separate skript.

I prefer debian systems. debian mount all local fs'es first. After
startup of networking, they setup the remote fs'es.

-- 
Frank Matthieß  [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] /etc/fstab

2002-09-20 Thread Axel Heinrici

Hi

On Friday 20 September 2002 09:52, Frank Matthieß wrote:
>
> Try smbfs. On Linux you have to setup a kernel with smb
> filesystem support. You need smbmount smbumount, which are in the
> "smbfs" packet on debian systems.
>
> The packet information give me the hint, that this is out of the
> samba source.

What do you mean by this? I really do not understand. A few days 
ago I compiled samba-2.2.5. There is a configure option to also 
compile smbmount.  

>
> /etc/fstab:
> //awek-ref/Barzen /mnt/awek-ref/barzen smbfs  
> rw,username=xx,password=xx,uid=1000,gid=1000

This may cause problems. At startup "mount -a" is called before 
network is up (at least in some distributions). So better add the 
"noauto"-option and mount the specific share later (after network 
coming up) by a separate skript.
Quick and dirty way for KDE-users: add desktop icon of type "drive" 
pointing to this fstab entry.

greetings 
Axel
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] /etc/fstab

2002-09-20 Thread Frank Matthieß

Freitag den 20.09.2002 um  8:55 CEST  +0200, schrieb cj:
> G'day all
> Is it possible to get fstab to mount a samba share?

Sure.
> I see it can mount nfs shares, but I need to know about samba shares

Try smbfs. On Linux you have to setup a kernel with smb filesystem
support. You need smbmount smbumount, which are in the "smbfs" packet on
debian systems.

The packet information give me the hint, that this is out of the samba
source.

/etc/fstab:
//awek-ref/Barzen /mnt/awek-ref/barzen smbfs   
rw,username=xx,password=xx,uid=1000,gid=1000

-- 
Frank Matthieß  [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba