LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2004, 01:56 PM   #1
the_agent
LQ Newbie
 
Registered: Aug 2004
Location: michigan
Distribution: redhat 9
Posts: 10

Rep: Reputation: 0
Question map network drive


hello. i call myself the_agent and i am new to your forums. my friend helped me set up a redhat 9 server under my router. it functions as a webserver, ftp server, and possibly mail server, but i dont use that so i dont know for sure. i use GAIM for all of my instant messaging needs since i use a windows computer and AIM and Trillian arent amongst my favorite programs. the redhat server is too old for me to use that as a desktop.

anyways, apparently GAIM doesnt have a 'direct connect' feature, which is not really a loss, under my router direct connect often fails anyways. so, generally i use my webserver to send images [a simple junk folder and connecting by ftp, and it works out]. however, connecting via ftp requires that i type things in, and, considering i do it often, i knew there must be an easier way. i asked one of my friends, and he said i could map a network drive. therein lies my dilemma. samba is running; however, i dont know how to work it. smb.conf

i tried to understand it, i honestly did, but i couldn't grasp it.

Code:
;       hosts allow = 192.168.0. 127.

;       security = SHARE


;bad attempt on my part, but an attempt no less
;[mapdrive]
;       comment = Junk Folder
;       path = /var/www/html/junk/
;       valid users = webftp
;       public = no
;       writable = yes
;       printable = no
i removed the semicolon where necessary to allow all local hosts and "enable" [i suppose] the security=share option. i tried to create a new rule[?] to map the network drive, but i'm too much of a to really understand

i tried creating a simple batch file in windows, but i dont know how one would tell it to use the login information. i suppose i dont really need to map a network drive if i can just make a ftp login shortcut

any help is greatly appreciated

-the_agent
 
Old 08-10-2004, 02:34 PM   #2
the_agent
LQ Newbie
 
Registered: Aug 2004
Location: michigan
Distribution: redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
one of my friends tried to help me a bit and we made this, but it didnt work out

Code:
         hosts allow = 192.168. 127.

;lets try this again
[global]
        workgroup = network
        server string = redhatserver
        encrypt passwords = yes
        security = share

[junk]
        path = /var/www/html/junk/
        writeable = yes
        valid users = webftp
        read only = no
i can see the server on the network, and when i open it i see the 'junk' folder, but when i try and open that a standard login screen appears, and the username is fixed to Rhserver/Guest and we dont know what to do. i tried looking in the manual, but i wouldnt get it anyways
 
Old 08-10-2004, 05:10 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Did you add the "webftp" user to the Samba database?
 
Old 08-10-2004, 05:40 PM   #4
the_agent
LQ Newbie
 
Registered: Aug 2004
Location: michigan
Distribution: redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
well, i didnt add anything. webftp is the user i login with to change things on the webserver. it has the rights over those folders. for samba, no i have not. may i ask how this is done?
 
Old 08-10-2004, 07:11 PM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Code:
smbuser -a webftp
 
Old 08-10-2004, 10:31 PM   #6
the_agent
LQ Newbie
 
Registered: Aug 2004
Location: michigan
Distribution: redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
do i just run that code from wherever? i logged in as root and typed it as you posted, but it said smbuser: command not found
 
Old 08-10-2004, 10:52 PM   #7
redhatgeek
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat/fedora
Posts: 24

Rep: Reputation: 15
smbpasswd -a webftp

but since your hosts allow is set to local network just enable guest

path = /var/www/html/junk/
writeable = yes
guest ok = yes
read only = no

Last edited by redhatgeek; 08-10-2004 at 11:06 PM.
 
Old 08-10-2004, 11:13 PM   #8
the_agent
LQ Newbie
 
Registered: Aug 2004
Location: michigan
Distribution: redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
i didnt see your message but my friend told me to do what you said [maybe he read it? i dont know] but it worked for creating a user. i'll try and set it all up when i get home thursday

thanks
 
Old 08-10-2004, 11:14 PM   #9
redhatgeek
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat/fedora
Posts: 24

Rep: Reputation: 15
btw i think you want hosts allow under [global]
 
Old 08-11-2004, 01:55 AM   #10
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Yes, I screwed that up, sorry.
 
Old 08-11-2004, 12:06 PM   #11
BrianWGray
Member
 
Registered: Oct 2003
Posts: 54

Rep: Reputation: 15
?

Quote:
i tried creating a simple batch file in windows, but i don't know how one would tell it to use the login information.
Were you referring to mounting the drive or to the ftp login?

map drive in windows from command line / batch

rem : deletes any share that may be using the drive letter
net use F: /delete

rem : maps drive
net use F: \\host\share password /user:username

connect to FTP from windows from shortcut:
REM : include this in a shortcut string - "using your credentials and the host you want to connect to."
FTP://username:password@host.domain


Using samba will be the easiest solution in the long run, but just since you mentioned it I thought I would throw it in here.

Last edited by BrianWGray; 08-11-2004 at 08:05 PM.
 
Old 08-11-2004, 12:17 PM   #12
steiza
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
the_agent-
I was dinking around with samba on Wednesday, and here is what I came up with, tailored for your specific problem (this works with linux and win95 :-p machines as clients)

smb.conf
-----------
[global]
workgroup = network
server string = redhatserver
encrypt passwords = yes
security = share

[junk]
path = /var/www/html/junk/
valid users = webftp
writeable = yes
public = no

Then issue the following commands as root:
-----------------------------------------------------
smbpasswd -a webftp // type in your password...
smbpasswd -e webftp // this may be redundant

My configuration is slightly different because I have a public upload directory, but this should work.

Good Luck!

-----------------------------
Peace, Love, and Linux
-----------------------------
 
Old 08-11-2004, 02:09 PM   #13
the_agent
LQ Newbie
 
Registered: Aug 2004
Location: michigan
Distribution: redhat 9
Posts: 10

Original Poster
Rep: Reputation: 0
i shall try all of these things when i return thursday
 
Old 08-12-2004, 06:55 AM   #14
redhatgeek
LQ Newbie
 
Registered: Jun 2004
Distribution: redhat/fedora
Posts: 24

Rep: Reputation: 15
Re: ?

Quote:
Originally posted by BrianWGray
Were you referring to mounting the drive or to the ftp login?

map drive in windows from command line / batch

rem : deletes any share that may be using the drive letter
net use F: /delete

rem : maps drive
net use F: \\host\share password /user:username

connect to FTP from windows from shortcut:
REM : include this in a shortcut string - "using your credentials and the host you want to connect to."
FTP://usernameassword@host.domain


Using samba will be the easiest solution in the long run, but just since you mentioned it I thought I would throw it in here.
fyi this swith /user:username only works on NT kernel not availabe for 9X
 
Old 08-12-2004, 11:03 AM   #15
littleking
Member
 
Registered: Jun 2003
Location: New Albany, OH
Posts: 190

Rep: Reputation: 30
you need to do:

useradd guest

passwd guest (make it blank)

then:

smbpasswd guest (make it blank)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Map network Drive across WAN mattp Linux - Networking 2 11-16-2005 07:27 PM
Linux map network drive across internet Linux6574 Linux - Networking 6 04-12-2004 11:01 PM
How to map a network drive in Fedora? RCook Fedora 7 12-10-2003 10:04 AM
map network drive indy317 Linux - Networking 2 09-04-2003 04:07 PM
How do I map a network drive? MeatClown Linux - Distributions 2 08-10-2003 04:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration