Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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?
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
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.
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)
[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
-----------------------------
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.