PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Did the syntax for a samba /etc/fstab entry change?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Did the syntax for a samba /etc/fstab entry change?

Réponse
 
LinkBack Outils de la discussion
Vieux 03/04/2008, 04h10   #1
Tom Epperly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Did the syntax for a samba /etc/fstab entry change?

I have the following line in my /etc/fstab:

//windmach/My\040Pictures /mnt/PictureArchive smbfs
noauto,user,username=Userone,rw,uid=uone,gid=uone 0 3

I only mount this drive every once in a while when I want to share
pictures with my wife. It's worked for a long time (over a year), and I
first noticed it not working today.

# mount /mnt/PictureArchive
mount error: could not find target server. TCP name windmach/My Pictures
not found
No ip address specified and hostname not found
# dpkg --list '*samba*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-==================-==================-================================================== ==
ii samba 3.0.28a-1 a LanManager-like file and
printer server for Unix
un samba-client <none> (no description available)
ii samba-common 3.0.28a-1 Samba common files used by
both the server and the c
ii samba-doc 3.0.28a-1 Samba documentation
un samba-doc-pdf <none> (no description available)
# uname -a
Linux linmach 2.6.24-1-amd64 #1 SMP Thu Mar 27 16:52:38 UTC 2008 x86_64
GNU/Linux


I run Debian unstable. I've checked the man pages and README files in
/usr/share/doc/samba-docs, and I can't find any indication that the
syntax has changed. Does anyone have any suggestions? Please Cc me on
replies.

Thanks,

Tom






--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 03/04/2008, 22h10   #2
Michael Marsh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Did the syntax for a samba /etc/fstab entry change?

On Wed, Apr 2, 2008 at 10:50 PM, Tom Epperly <tepperly@gmail.com> wrote:
> I have the following line in my /etc/fstab:
>
> //windmach/My\040Pictures /mnt/PictureArchive smbfs
> noauto,user,username=Userone,rw,uid=uone,gid=uone 0 3

....
> I run Debian unstable. I've checked the man pages and README files in
> /usr/share/doc/samba-docs, and I can't find any indication that the
> syntax has changed. Does anyone have any suggestions? Please Cc me on
> replies.


smbfs has been deprecated in favor of cifs. Depending on your
provider, you may be able to replace "smbfs" with "cifs" and have
everything work. If, like me, you have a "ful" ISP that treats
unresolvable domains as searches, you'll never hit the local wins
lookup for your SMB server. What worked for me in this case is to
have a line like the following in /etc/nsswitch.conf:

hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4

Note that this means all hostname resolution will check for wins
entries before dns. Doing the equivalent in the samba configs doesn't
currently work for cifs.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com
http://36pints.blogspot.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 05/04/2008, 18h00   #3
Michael Marsh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Did the syntax for a samba /etc/fstab entry change?

[CC'ing to d-u for any samba experts out there]

On Sat, Apr 5, 2008 at 12:03 PM, Tom Epperly <tepperly@gmail.com> wrote:
mm> smbfs has been deprecated in favor of cifs. Depending on your
mm> provider, you may be able to replace "smbfs" with "cifs" and have
mm> everything work. If, like me, you have a "ful" ISP that treats
mm> unresolvable domains as searches, you'll never hit the local wins
mm> lookup for your SMB server. What worked for me in this case is to
mm> have a line like the following in /etc/nsswitch.conf:
mm>
mm> hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4
>
> I tried making these two changes, and it didn't really do anything. B
> # mount /mnt/PictureArchive
> mount error: could not find target server. TCP name brightlywoven/My
> Pictures not found
>
> No ip address specified and hostname not found
>
> The error message suggests that it's doing a name looking for
> "brightlywoven/My Pictures" rather than "brightlywoven". Any suggestions?


Is "brightlywoven/My Pictures" being advertised as an SMB share? If
not, you may have to mount just "brightlywoven" (if you can't
configure the server to advertise the directory you want). I'm not
sure if there's a way to specify a directory on a share.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com
http://36pints.blogspot.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 05/04/2008, 18h30   #4
Tom Epperly
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Did the syntax for a samba /etc/fstab entry change?

Michael Marsh wrote:
> [CC'ing to d-u for any samba experts out there]
>
> On Sat, Apr 5, 2008 at 12:03 PM, Tom Epperly <tepperly@gmail.com> wrote:
> mm> smbfs has been deprecated in favor of cifs. Depending on your
> mm> provider, you may be able to replace "smbfs" with "cifs" and have
> mm> everything work. If, like me, you have a "ful" ISP that treats
> mm> unresolvable domains as searches, you'll never hit the local wins
> mm> lookup for your SMB server. What worked for me in this case is to
> mm> have a line like the following in /etc/nsswitch.conf:
> mm>
> mm> hosts: files wins mdns4_minimal [NOTFOUND=return] dns mdns4
>
>> I tried making these two changes, and it didn't really do anything. B
>> # mount /mnt/PictureArchive
>> mount error: could not find target server. TCP name brightlywoven/My
>> Pictures not found
>>
>> No ip address specified and hostname not found
>>
>> The error message suggests that it's doing a name looking for
>> "brightlywoven/My Pictures" rather than "brightlywoven". Any suggestions?
>>

>
> Is "brightlywoven/My Pictures" being advertised as an SMB share? If
> not, you may have to mount just "brightlywoven" (if you can't
> configure the server to advertise the directory you want). I'm not
> sure if there's a way to specify a directory on a share.
>
>

Yes My Pictures is shared. I tried a couple of other things.

# mount -t cifs //brightlywoven /mnt/PictureArchive
Mounting the DFS root for a particular server not implemented yet
No ip address specified and hostname not found

# mount -t cifs //brightlywoven/SharedDocs /mnt/PictureArchive
mount error: could not find target server. TCP name
brightlywoven/SharedDocs not found
No ip address specified and hostname not found


  Réponse avec citation
Vieux 05/04/2008, 18h50   #5
Bob Cox
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Did the syntax for a samba /etc/fstab entry change?

On Sat, Apr 05, 2008 at 10:04:40 -0700, Tom Epperly (tepperly@gmail.com) wrote:

[snip]

> Yes My Pictures is shared. I tried a couple of other things.
>
> # mount -t cifs //brightlywoven /mnt/PictureArchive
> Mounting the DFS root for a particular server not implemented yet
> No ip address specified and hostname not found
>
> # mount -t cifs //brightlywoven/SharedDocs /mnt/PictureArchive
> mount error: could not find target server. TCP name
> brightlywoven/SharedDocs not found
> No ip address specified and hostname not found


If it's of any , I mount the remote directory 'fileserver' which is
on a box called 'gaia' with this line in /etc/fstab:

//gaia/fileserver /mnt/fileserver smbfs guest,uid=1000,gid=1000 0 0

...and this results in the following output from the 'mount' command:

//gaia/fileserver on /mnt/fileserver type cifs (rw,mand)

It is worth mentioning that there is an entry in /etc/hosts for gaia.

Probably I should update fstab to use 'cifs' but it works fine as it is.

--
Bob Cox. Stoke Gifford, near Bristol, UK.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH97k8tRQI2J/5p20RAp+hAJ9DCAWpHfU0Rl4rtUlTWYqNlnqmMwCgmI47
c6sVnJBT9TJnRdBMenCkeic=
=KD58
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 05/04/2008, 19h30   #6
Michael Marsh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Did the syntax for a samba /etc/fstab entry change?

On Sat, Apr 5, 2008 at 1:04 PM, Tom Epperly <tepperly@gmail.com> wrote:
> Yes My Pictures is shared. I tried a couple of other things.
>
> # mount -t cifs //brightlywoven /mnt/PictureArchive
> Mounting the DFS root for a particular server not implemented yet
>
> No ip address specified and hostname not found
>
> # mount -t cifs //brightlywoven/SharedDocs /mnt/PictureArchive
> mount error: could not find target server. TCP name
> brightlywoven/SharedDocs not found
>
> No ip address specified and hostname not found


What does smbtree show?

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com
http://36pints.blogspot.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 07/04/2008, 09h40   #7
Glen Pfeiffer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Did the syntax for a samba /etc/fstab entry change?

On 04/05/2008 10:50 AM, Bob Cox wrote:
> [snip]
>
> //gaia/fileserver on /mnt/fileserver type cifs (rw,mand)
>
> It is worth mentioning that there is an entry in /etc/hosts for
> gaia.
>

I recall reading that cifs needs an IP address but an entry in
your /etc/hosts will work.

--
Glen


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h14.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15082 seconds with 15 queries