Hi, I'm running Linux 2.2.2 w/ Samba 2.0.2, using the smbmount that comes with Samba 2.0.2. I noticed that when I mount shares, smbmount sticks around, almost like a daemon: [root@jason /root]# smbmount //XXXX.gatech.edu/XXXX$ "XXXXXX" -U jkau -c "mount /mnt/cnd" < /dev/null > /tmp/smbmount.out [root@jason /root]# ps ax | grep smbmount 10678 ? S 0:00 /usr/bin/smbmount //XXXX.gatech.edu/XXXX$ XXXXXX [root@jason /root]# This isn't how smbmount used to behave. Is it supposed to stick around like this? This occurs regardless of the type of share I'm mounting (occurs with both WinNT shares and Samba shares). Thanks for your help. jason kau jason.kau@btc.gatech.edu
On Mon, 8 Mar 1999, Jason B. Kau wrote:> Hi, > > I'm running Linux 2.2.2 w/ Samba 2.0.2, using the smbmount that comes with > Samba 2.0.2. I noticed that when I mount shares, smbmount sticks around, > almost like a daemon: > > [root@jason /root]# smbmount //XXXX.gatech.edu/XXXX$ "XXXXXX" -U jkau > -c "mount /mnt/cnd" < /dev/null > /tmp/smbmount.out > [root@jason /root]# ps ax | grep smbmount > 10678 ? S 0:00 /usr/bin/smbmount //XXXX.gatech.edu/XXXX$ XXXXXX > [root@jason /root]# >Yes, it is a daemon. It reconnects when the server disconnects you (after a certain time). Why it isn't a kernel thread? (like kmod) I have no idea ... /Urban --- Urban Widmark urban@svenskatest.se Svenska Test AB +46 90 71 71 23
I didn't see any reference to this in the archives, please point me to the right documentation if I've missed something. I'm using samba to mount Linux (Redhat 6.1 i386 2.2.12-20) filesystems on my NT (4, SP6) box and it works fine. However (you knew there was a however), when I mount an NT share onto my Linux box (same two machines) with smbmount, the mount will 'go away' after about 15 minutes (maybe it's a certain amount of idle time). All I get is "input/output error" when I do a 'df' or 'ls'. Unmounting and remounting will give me another time slice to do some work. Any ideas? Is the Linux box closing the connection or is the NT box? Logs on both sides of the connection don't show anything. Thanks for any help! -John ---------------------------------------------------------------- John Rousseau jrr@silverstream.com SilverStream Software 1 Burlington Woods Phone: +1 781 238 5564 Burlington, MA 01803 Fax: +1 781 238 5499 ----------------------------------------------------------------
I am using SMBMOUNT to mount an NT share. I have set up an init script, so that my linux boxes will mount the share on boot, however, I havent been able to pass a password to SMBOMOUNT, so essentailly the script just hangs. Any suggestions? ____________________ Jonah Wolf CTNY, LLC 212.625.6206 Digital Revolutionaries: www.ctny.com <http://www.ctny.com>
I'd like to mount windows shares at boot with r/w privs for a specific user. Currently, it defaults to root. How can I accomplish this? Thanks, Jeff Elkins
Jeff Elkins <smblist@elkins.org> wrote on 22.10.2001 01:10:36:> >I'd like to mount windows shares at boot with r/w privs for a specific >user. Currently, it defaults to root. > >How can I accomplish this? > >Thanks, > >Jeff Elkins > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/sambaHi Jeff, did you tried to use "su -c smbmount ... user" from within sysv-init (i.e. /etc/init.d/network)? ciao Oliver -- Good programming is 40% experience, 30% skill, 20% RTFM, 10% caffeine, and 5% attention to detail. Oliver Six, CAHOS GmbH, Cimbernstr. 51, Germany 81377 Muenchen, Phone +49 89 71 01 93 40, Fax +49 89 71 01 93 41
I'm on a Redhat 7.1, Samba 2.2.3a server in a share called Public. I'm logged into the server as root, from the console and have cd'd to the Public directory. I'm trying to use smbmount to mount an NT share from a WinNT Server 4.0, SP3. The share on that server is called "manage." The IP of the NT server is 192.168.204.100. The Samba server is on a different network at 210.111.222.123. There is a directory named "Man" that will be used as the mount point on the samba server. I issue the command: smbmount //210.111.222.123/manage Man then press the Enter key. password: I enter the password then press the Enter key. I now get 2 error messages on the console: 955: session request to 210.111.222.123 failed (Called name not present). 955: session request to 210 failed (Called name not present). When I inspect the Man directory, all the appropriate files and directories are there. I see them with Network Neighborhood and with Windows Explorer. Does smbmount really do what I'm expecting it to do with a shared NT directory & files or is the above responses normal? Is there something else to do??? Thanks in advance, Marion D. Haines Network Administrator Board of County Commissioners Brevard County, Florida ================================== EMail: marion.haines@countygovt.brevard.fl.us Phone: 321-617-7398 ==================================
Thanks for the reply. One of the Samba servers is also acting as WINS. I've set up the NT system with the WINS info but have to wait until the end of the day to boot it for the WINS setup to take effect. Will let you know the results. Thanks, Marion D. Haines Network Administrator Board of County Commissioners Brevard County, Florida ================================== EMail: marion.haines@countygovt.brevard.fl.us Phone: 321-617-7398 ================================== -----Original Message----- From: Joel Hammer [mailto:Joel@HammersHome.com] Sent: Monday, May 20, 2002 5:16 PM To: iSMTP@GC2A@Servers; Marion Haines@BCC@Viera Subject: Re: [Samba] smbmount question I can reproduce this error on my home system in the following way. My home system has two subnets. If I try to smbclient -L a server (XP) on a different subnet, using smbclient -L 192.168.1.9 I get the following error: INFO: Debug class all level = 3 (pid 24708 from pid 24708) added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0 session request to 192.168.1.9 failed (Called name not present) session request to 192 failed (Called name not present) However, the shares are all listed and things seem to be normal. If I use the server winsbios name (which is the same as the dsn name) smbclient -L elsa, I get the shares listed without any error messages. This only occurs when I try to smbclient -L to a different subnet. So, what happens when you try the NT server winsbios name, instead of the server IP address, assuming you have got a winserver and your linux box knows about it with the wins server parameter in smb.conf? Joel On Mon, May 20, 2002 at 03:51:51PM -0400, Marion Haines wrote:> I'm on a Redhat 7.1, Samba 2.2.3a server in a share called Public. I'm logged into the server as root, from the console and have cd'd to the Public directory. > > > I'm trying to use smbmount to mount an NT share from a WinNT Server4.0, SP3. The share on that server is called "manage." The IP of the NT server is 192.168.204.100. The Samba server is on a different network at 210.111.222.123. There is a directory named "Man" that will be used as the mount point on the samba server. > > > I issue the command: > >> smbmount //210.111.222.123/manage Man then press the Enterkey. > > password: I enter the password then press the Enter key. > > > I now get 2 error messages on the console: > > 955: session request to 210.111.222.123 failed (Called name not present).> 955: session request to 210 failed (Called name not present). > > When I inspect the Man directory, all the appropriate files anddirectories are there. I see them with Network Neighborhood and with Windows Explorer. > > Does smbmount really do what I'm expecting it to do with a shared NT directory & files or is the above responses normal? Is there something else to do??? > > Thanks in advance, > Marion D. Haines > Network Administrator > Board of County Commissioners> Brevard County, Florida > ================================== >EMail: marion.haines@countygovt.brevard.fl.us > Phone: 321-617-7398> ================================== > > > > -- > To unsubscribefrom this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Thanks for the reply. I'm setting up the NT box with WINS but will have to wait until after business hours to reboot it. The NT and WINS servers (one of my Samba servers) are on different networks. Will let everyone know the results. Marion D. Haines Network Administrator Board of County Commissioners Brevard County, Florida ================================== EMail: marion.haines@countygovt.brevard.fl.us Phone: 321-617-7398 ================================== -----Original Message----- From: Urban Widmark [mailto:urban@teststation.com] Sent: Monday, May 20, 2002 6:29 PM To: Marion Haines@BCC@Viera Cc: iSMTP@GC2A@Servers Subject: Re: [Samba] smbmount question On Mon, 20 May 2002 marion.haines@countygovt.brevard.fl.us wrote:> I issue the command: > > > smbmount //210.111.222.123/manage Man then press the Enter key. > > password: I enter the password then press the Enter key.The IP number should be of the machine you want to mount from, in this case the NT box. You shouldn't have to, but you may need to specify the netbios name of the NT box and give the ip number as a separate option. smbmount //ntname/manage /mnt/Man -o ip=192.168.204.100 This of course assumes that you have network connectivity from the linux box to the NT box. Other potentially useful options are the workgroup option, the uid/gid and fmask/dmask options. Check the smbmount manpage. /Urban -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Can you just stop/restart the WINS service? Save you a reboot.... Jim> -----Original Message----- > From: marion.haines@countygovt.brevard.fl.us > [mailto:marion.haines@countygovt.brevard.fl.us] > Sent: Tuesday, May 21, 2002 7:45 AM > To: samba@lists.samba.org > Subject: RE: [Samba] smbmount question > > > Thanks for the reply. I'm setting up the NT box with WINS > but will have to wait until after business hours to reboot > it. The NT and WINS servers (one of my Samba servers) are on > different networks. > > Will let everyone know the results. > > Marion D. Haines > Network Administrator > Board of County Commissioners > Brevard County, Florida > ================================== > EMail: marion.haines@countygovt.brevard.fl.us > Phone: 321-617-7398 > ================================== > > -----Original Message----- > From: Urban Widmark [mailto:urban@teststation.com] > Sent: Monday, May 20, 2002 6:29 PM > To: Marion Haines@BCC@Viera > Cc: iSMTP@GC2A@Servers > Subject: Re: [Samba] smbmount question > > On Mon, 20 May 2002 marion.haines@countygovt.brevard.fl.us wrote: > > > I issue the command: > > > > > > smbmount //210.111.222.123/manage Man then press > the Enter key. > > > > password: I enter the password then press > the Enter key. > > The IP number should be of the machine you want to mount from, in this > case the NT box. You shouldn't have to, but you may need to > specify the > netbios name of the NT box and give the ip number as a > separate option. > > smbmount //ntname/manage /mnt/Man -o ip=192.168.204.100 > > This of course assumes that you have network connectivity > from the linux > box to the NT box. > > Other potentially useful options are the workgroup option, > the uid/gid and > fmask/dmask options. Check the smbmount manpage. > > /Urban > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
It's the NT server that I have to reboot so it will know the IP of the WINS server. Marion D. Haines Network Administrator Board of County Commissioners Brevard County, Florida ================================== EMail: marion.haines@countygovt.brevard.fl.us Phone: 321-617-7398 ================================== -----Original Message----- From: Van Sickler, Jim [mailto:vansickj-eodc@Kaman.com] Sent: Tuesday, May 21, 2002 11:28 AM To: iSMTP@GC2A@Servers; Marion Haines@BCC@Viera Subject: RE: [Samba] smbmount question Can you just stop/restart the WINS service? Save you a reboot.... Jim> -----Original Message----- > From: marion.haines@countygovt.brevard.fl.us > [mailto:marion.haines@countygovt.brevard.fl.us] > Sent: Tuesday, May 21, 2002 7:45 AM > To: samba@lists.samba.org > Subject: RE: [Samba] smbmount question > > > Thanks for the reply. I'm setting up the NT box with WINS > but will have to wait until after business hours to reboot > it. The NT and WINS servers (one of my Samba servers) are on > different networks. > > Will let everyone know the results. > > Marion D. Haines > Network Administrator > Board of County Commissioners > Brevard County, Florida > ================================== > EMail: marion.haines@countygovt.brevard.fl.us > Phone: 321-617-7398 > ================================== > > -----Original Message----- > From: Urban Widmark [mailto:urban@teststation.com] > Sent: Monday, May 20, 2002 6:29 PM > To: Marion Haines@BCC@Viera > Cc: iSMTP@GC2A@Servers > Subject: Re: [Samba] smbmount question > > On Mon, 20 May 2002 marion.haines@countygovt.brevard.fl.us wrote: > > > I issue the command: > > > > > > smbmount //210.111.222.123/manage Man then press > the Enter key. > > > > password: I enter the password then press > the Enter key. > > The IP number should be of the machine you want to mount from, in this > case the NT box. You shouldn't have to, but you may need to > specify the > netbios name of the NT box and give the ip number as a > separate option. > > smbmount //ntname/manage /mnt/Man -o ip=192.168.204.100 > > This of course assumes that you have network connectivity > from the linux > box to the NT box. > > Other potentially useful options are the workgroup option, > the uid/gid and > fmask/dmask options. Check the smbmount manpage. > > /Urban > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Hi all: My situation is as follows: RH 7.3 Linux box with Samba 2.2.4 installed from RPM. One windows 2k pro box. both on same subnet. I have a directory on the win2k box that I want to make available through Samba via smbmount. The problem comes when I actually do the mount. Mounting the win2k share on the Samba server changes the group ownership and the file permissions. It sets them to root.root when they were root.users before. I tried creating a low level username on the win2k box and passing that username and password on the command line via smbmount but to no avail. Has anyone seen this problem before and/or know what I'm doing wrong. And yes I know it would be easier to just move the share to the Linux box, but I'm almost out of local disk space and I can't add anymore right now... :( TIA James
Joel: My problem was solved after I did a search on the archive. I found a post from Urban widmark that addresses this issue as being related to a bad rpm package. When I placed a symbolic link to smbmnt in /usr/bin the following works as follows: mount -t smbfs //bb2/customers /mnt/customers -o username=linux,gid=users,fmask=770,dmask=770 Password: [root@george mnt]# ls -al total 24 drwxr-xr-x 6 root root 4096 Jun 25 16:20 . drwxr-xr-x 21 root root 4096 Jun 25 17:24 .. drwxr-xr-x 2 root root 4096 Jun 9 21:47 cdrom drwxrwx--- 1 root users 4096 Jun 25 18:32 customers drwxr-xr-x 2 root root 4096 Jun 9 21:47 floppy drwxr-xr-x 2 root root 4096 Jun 25 16:20 shipping Thus the directory is successfully mounted with the desired owner and group and file permissions. Thanks for your help and I hope this will help someone else. James ----- Original Message ----- From: "James W. Beauchamp" <jbeauchamp@gesinc.com> To: "Joel Hammer" <Joel@HammersHome.com>; <samba@lists.samba.org> Sent: Tuesday, June 25, 2002 10:41 PM Subject: Re: [Samba] Smbmount question> > Does this reply say that you are now mounting the share with the correct > > owner and user? Are you having password/user problems? > > Yes, it mounted with the correct owner and user. > > > > > BTW, the guest user is set based on the samba configuration. Here is > > how I do it: > > > > [global] > > security = SHARE > > log level = 3 > > guest account = ftp > > > > Ahhhhhh, this may be my problem. I was confused and was thinking that the > use of the 'guest' directive on the smbmount command line was specifyingthe> guest account on the win2k box, not on my Linux/samba server!!! My guest > account directive in smb.conf is still commented out which I think meansit> is using the user 'nobody'. I'll check that. It appears to sort of work. > Here is what the smbmount command gives me: > > > > > > > [AllFiles] > > comment = All Files > > path = / > > read only = Yes > > guest ok = Yes > > > > Joel > > > > On Tue, Jun 25, 2002 at 10:17:35PM -0400, James W. Beauchamp wrote: > > > Joel: > > > Don't know. I haven't tried it with anything else (windows that is).I> > > think I was just able to make it work by using the 'guest' attribute. > It > > > gave an error when executing the smbmount command, but still appearsto> have > > > mounted it and with the correct ownership, root.users. I don't knowwhy> it > > > worked though, because the 'guest' user on the win2k box is disabled. > > > > > > Any more ideas? > > > > > > James > > > > > > ----- Original Message ----- > > > From: "Joel Hammer" <Joel@HammersHome.com> > > > To: "James W. Beauchamp" <jbeauchamp@gesinc.com>; > <samba@lists.samba.org> > > > Sent: Tuesday, June 25, 2002 10:00 PM > > > Subject: Re: [Samba] Smbmount question > > > > > > > > > > Is this a problem only with w2k ? > > > > > > > > Joel > > > > > > > > > > > > > > > > > > > > -- > > > To unsubscribe from this list go to the following URL and read the > > > instructions: http://lists.samba.org/mailman/listinfo/samba > > >
Hi, I seem to be missing something. I've got a remote server with a directory I need to share to my local (win98) machines. Due to some poor planning that server and my local machines are not on the same network. I bridged that gap with a linux server where I've dual homed that server and installed Samba. I used smbmount to mount the drive (passing -o username=,password=) to a point on my server (say /opt/hq). From the server I can then browse /opt/hq The way I'm doing it (which may be wrong) is I setup in my smb.conf a setting for hq and pointed it to /opt/hq Then I use my windows boxes (12 98 boxes, and 1 2K box) to connect to the //localservername/hq share thru samba, and that's where I get prompted for a password. No matter what password I put in, it's wrong. I get an error saying that username / password is invalid. Do I have this setup totally wrong? Thanks in advance. --John -- John Anderson Ceeva, Inc.