Click to See Complete Forum and Search --> : Samba - Sharing?
tha_0ne
10-29-2001, 09:33 AM
I have a simple question (I think :p)...
How do I share something in samba? I wanna share my whole linux harddrive, so I can write on it from my windows comp, and the other way too... How to I fix this? Of course I've read the NHF.
z0mbix
10-29-2001, 11:40 AM
If you've read the NHF you've obviously tried to get this working and failed. So, what have you tried and what problems are you having?
tha_0ne
10-29-2001, 11:43 AM
smbclient -L localhost returns no shares, only IPC$ and something other "$"-thing.. not "data" and "public" that are supposed to be shared. Then, I can't access it from windows either, just like if it didn't exist.
Not much info, I know, but I can't give you much more right now.
tha_0ne
10-29-2001, 12:35 PM
Now we're making progress. I found "Samba server blabla" on the windows comp, I double-clicked, and "Connect to h246n2fls2bblabla" popped up. Username and password? What username/passwords? I tried smbuser, samba, root, tha_0ne, and I created a new user with home /home/public. What should I do to fix this?
scanez
10-29-2001, 02:05 PM
Did you restart Samba after creating the shares?
SC
teeitup
10-29-2001, 02:44 PM
Did you add your Linux username to the smb password file?
smbpasswd -a yourlinuxusername <cr>
enter your password if prompted.
tha_0ne
10-29-2001, 03:35 PM
YES!!!!
Thanx for the tip, teeitup!
BTW, I must admit, I AM stupid. I did (as usual) not care about the docs.
Now I'm gonna fix alot here!
Before, I couldn't download to the server, 'cause I had no GUI, nor Lynx. Now I can click on the link on my primary comp, and save them to the server!
[ 29 October 2001: Message edited by: tha_0ne ]
tha_0ne
10-29-2001, 04:05 PM
How the hell do I do, if I wanna "share" the whole filesystem (/) to my internal network?
I want write&read-"rights", but that's over the ENTIRE filesystem. Help!
scanez
10-29-2001, 05:09 PM
Originally posted by tha_0ne:
<STRONG>How the hell do I do, if I wanna "share" the whole filesystem (/) to my internal network?
I want write&read-"rights", but that's over the ENTIRE filesystem. Help!</STRONG>
Hmmm, are you sure you want to share /? Even if you have pretty decent security, there is still that one chance that someone can break in and mess with everything on your comp. I suggest only sharing what you only need to share.
Just a thought
SC
teeitup
10-29-2001, 07:22 PM
Glad I could help.
You now need to read and experiment.
http://www.oreilly.com/catalog/samba/chapter/book/index.html
You can learn alot just by carefully reading the editing notes in the
/etc/samba/smb.conf file.
Another excellent series: http://www2.linuxjournal.com/cgi-bin/frames.pl/articles/sysadmin/0055.html
Good Luck,