LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-19-2004, 09:43 PM   #1
thuongkiet82
LQ Newbie
 
Registered: Apr 2004
Location: Ho Chi Minh, Viet Nam
Distribution: Lindows OS
Posts: 14

Rep: Reputation: 0
I can't share my computer on LAN


when I go to my /disks/dos2 I chose share, Lindows say that I can share directory in /root/. What is say? My dos2 is a NTFS system file. Almost computer on LAN using Win Xp. Please help me.... Thank a lot.
 
Old 05-20-2004, 02:06 AM   #2
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
never seen someone share a partition like that. Maybee you'd better try editing /etc/samba/smb.conf this file is well documented and contains all the settings you need to share anything over samba.
(also make sure that your samba deamon is running)
 
Old 05-20-2004, 07:06 AM   #3
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Quote:
Lindows say that I can share directory in /root/
No, you can't.... unless you're running the computer as root, which you should NOT be doing.

Folders can only be shared from the user's home directory. In the case of root, that is the /root/ directory, but you should absolutely not be logged in as root to use your computer under normal circumstances.

I hope I've yelled about this enough. Lindows/Linspire should have given you an opportunity to create a normal user the first time you logged in; if you did not take that opportunity, you should go to the Lindows/Linspire User Manager (it must be there somewhere) and add a normal user, or you can use the adduser command in a terminal.

Do so, and then we can worry about editing Samba to share whatever you're trying to share.

I think what you're saying in that regard is that you want to share a mounted NTFS partition back to the network, is that correct? Or does this partition only need to be available to your computer?

What is it that you want to share back to the LAN, btw? Where are the files/folders located (on what HDD)? The folders in question live on an NTFS filesystem? What else is on the partition (are these files on a different partition from your WindowsXP system files)? What is the current mount point of this partition? What version of Lindows/Linspire are you using? Will these potential shared folders need only read access, or read-write access?

NTFS may be a problem, depending on the Lindows/Linspire version (I have no idea what the status of Linspire is with regards to NTFS read/write support), but if you have enough HDD space, it might be worth it to create a FAT32 partition and move the folders in question to that instead.

In any case, the basic process is (I have several folders shared back to a Win2K network, and I have done this under all of the distros listed in my sig):[list=1][*] Add the Windows users as Linux users on your system using the User Management tool. It's also a good idea to also create a special group for network fileshares, and add all these Windows users (and yourself) to this group; that way you can set the group permissions on the mount point and have them apply to all these users without too much stress;
[*] Move the mount point of the partitions to the user's $HOME$ folder (because you can only share folders from your $HOME$ folder). This will most likely involve editing /etc/fstab. Read man mount and man fstab for syntax and information on what options are available for each filesystem type you may be mounting. When creating the mount point in your /home/username folder, make sure to give it the proper owner, group and "other" permissions before mounting the partition into the folder;
[*] Configure/confirm configuration of Windows filesharing (note the Windows workgroup name; if your printer is connected to a Windows box from which it will be shared back to you, note the share name; if you will be receiving shares from this computer, note an unused Windows username and password, add your Linux username and password (NOT root) to the authorized Windows users list (give this user Admin privileges), create a new, "junk" user with Admin privileges, or enable/use the "guest" account);
[*] Confirm that networking works; ping the other boxes from each other and make sure that everybody can receive everybody else's pings;
[*] Configure Samba: change the WORKGROUP in /etc/samba/smb.conf to reflect the Windows workgroup; copy one or more of the share examples at the bottom of the file and edit it to reflect the real location of the folders you're actually sharing;
[*] Add and enable yourself and all users who will be receiving shared files from your PC to smbpasswd.
[*] Stop and restart the Samba daemons (smbd and nmbd); wait up to 15 minutes for the network broadcast to update the other boxes.
[*] Check Network Neighborhood on the XP boxes to see if the shares are visible and accessible at the level you want.[/list=1]

That's basically how it's done, but you have at least one major configuration step to do before you begin sharing anything, and that is (again): create a normal user account for yourself. Running as root is extremely insecure, especially when you give share access to outside boxes or go on the Internet.

So before you do any of this, create a user account and log into it.
 
  


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
LAN Share Scanner in Linux smruti Fedora 3 01-08-2012 09:32 AM
How can I share between wireless and LAN? mikezang Linux - Wireless Networking 5 11-06-2005 10:42 AM
How to build a network/share files with and XP Computer??? aktiwers Linux - Networking 1 06-03-2004 07:14 AM
How to share files(not in LAN)? Cavenaghi Linux - Networking 1 04-14-2004 07:33 AM
Want to share a fat32 partition over a LAN el_pajaro! Linux - Networking 5 02-06-2004 02:02 PM

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

All times are GMT -5. The time now is 06:33 AM.

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
Open Source Consulting | Domain Registration