Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

Linux Server, Windows Client?

Hello all.

**** LINUX SUPER BEGINNER ****
Ok, Here is what I'm trying to do. I have a UBUNTU 5.04 box with a music player on it. We play our office music on this machine and nothing else. Our office is mostly windows xp based. I have all my wonderful music stored on my windows PC. I wanted to know the best way to allow the linux box to be "mapped" to my windows computer so that I can access push my music to the linux box. NO FTP or SSH or anything like that. I wanna have the linux box show up like a mapped drive.

(explain carefully and detailed becuase I don't know anything about linux)
0
kissmecat
Asked:
kissmecat
3 Solutions
 
kissmecatAuthor Commented:
i dont need samba cuz my ubuntu box can be a server or can I peer to peer?
0
 
ygouthamCommented:
samba is the only way as i see right now.  samba need not make your server or anything of that nature but offers a simple folder sharing for people.  it can be generic to anyone or only a select few depending on your requirement.  you can map drives from a different computer only if they are shared.  when you say NO FTP or SSH then you are pretty much ruling out all options available other than samba.

samba can be peer to peer , no password sharing, password based sharing, valid user authentication , etc and the options are quite numerous.

let us say you have a valid login in the ubuntu box as user1.

then edit your /etc/samba/smb.conf

1.  mv /etc/samba/smb.conf /etc/samba/smb_conf_orig
2.  vi /etc/samba/smb.conf (this gives you a screen to edit your contents of a new smb.conf file. and enter the following)
#########
[global]
  workgroup = MYGROUP
   netbios name = ubuntu_box
   server string = Ubuntu Music Box
;   hosts allow = 192.168.1.1
;  (you can specify your own list or not required if you do not feel like having this line)
    local master = no

[music]
   comment = Music Sharing Folder
    path = /some/path/to/a/empty/folder/where/you/can/upload/your/files
    writable = yes
;    valid users = kissmecat, user1
; (again you can give a comma separated value to take more users
;  and remove the first semicolon at the beginning of the sentence and exclude the comments)
##########
finish off the editing with hitting escape ":wq" and hit enter

4.  service smb start

voila you should have a box which gives a machine which you can access from a windows machine by

start -> run -> \\ubuntu_box

right click on "music" and map it to a local drive!!
0
 
kissmecatAuthor Commented:
service smb start didn't work
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
kissmecatAuthor Commented:
nevermind... now my windows computer sees the music box but when i try to login into it (from windows to linux) with the linux use rnaem and password... the loning changed the user name to the name of my computer \kissmecat <--- my linux user name. It wont work though. How to fix or correct or setup.
0
 
joshmia2001Commented:
Make sure you have your users in /etc/samba/smbusers

Joshua McDowell
0
 
spuddaCommented:
to follow on from the previous comment

smbpasswd -a username

ie smbpasswd -a spudda

would accomplish this as well. Make sure the smbusername  maps to something in your Linux system and you should be fine
0
 
kissmecatAuthor Commented:
how do i do that??
0
 
joshmia2001Commented:
 Please read the following post..

http://www.comptechdoc.org/os/linux/manual4/sambausers.html

  It explains in a little more detail what needs to be done next..  It should give you an idea of what you need to search for to completle your task.
  I will explain the basics..
  You have Linux users, and you have a user created on your windows machine..  In order for them to have personalized access on your linux box, they must have an account on your linux box.  On top of that, samba ( Server Message Block or SMB ) must also have separate accounts that it can authenticate against.  So if you setup those accountws according to that article, you should be good.  So long as the unix user exsists, once authenticated it should place them in their home directory share.  
0
 
joshmia2001Commented:
 Sorry didn't mean to post yet..
  So anyway, that is an option that must be set in /etc/samba/smb.conf In that file you will see all kinds of options as far as what gets shared and what doesn't.

  Joshua McDowell
0
 
joshmia2001Commented:
 I forgot to mention, that your linux user and your windows user have to be exactly the same, both user name and password as windows is going to send this information when logging in.  There is a way to change a registry key so that you can log in everytime with what ever you want, but you don't want that.

Joshua
0
 
kissmecatAuthor Commented:
PERFECT!!!!! GOOD JOB GUYS!!!! But now i have to post a question on how to create a setup FTP... can you guys help me out with that one too???
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now