-
Samba Help
I'm pretty much brand new to the Linux scene. I know very little, but I want to start dabbling with it some. There are actually several things that I want to accomplish, but I'll take them one step at a time. The first thing I want to do is make my Linux machine a file server for a Microsoft network. I have the KNOPPIX CD, and I'm using that temporarily as a learning tool, and may later install it to the hard drive, if I can make it dual boot. In my research, I find that I need to set up Samba to accomplish what I'm looking into. browsing around, I have found a Samba Status in the Control Center, but I can't find anywhere in the entire operating system where I can configure Samba. I even went to Samba.org and downloaded the Samba program, but I can't figure out how to install it. Any help is greatly appreciated.
-
Samba Help
This is from the FAQ here and it is a good basic Samba start. A search of the Internet for Samba Newbie should get many good results. I have not tested Knoppix as a Samba server so I can not confirm it works. I did get a couple of errors when I started Samba but I did not test if I could connect.
Good Luck!
Q: I want to copy files to a windows box over the network
A: Both directions are possible. Either start SAMBA or mount the remote share.
To access files on Linux from Windows:
"sudo /etc/init.d/samba start", add users with "smbpasswd -a knoppix". After this, the home directory of user knoppix will be shared as readonly. If you need other shares, edit /etc/samba/smb.conf and restart samba (replace "start" with "restart").
To access a Windows share from Linux:
"mkdir tmp/share; sudo mount -t smbfs -o username=Administrator //otherbox/share /tmp/share" (maybe start samba too to get rid of the warnings, especialy when using "nmblookup")
When I first started using Samba I started using this:
http://www.sclug.org//members/docs.cgi?date=07-22-2000
-
Great. Thanks a lot for the help. That seemed to work, and I didn't run into any errors. I was able to see the files on my Win 2000 machine without a problem.
How do I set up shares on my Knoppix server, then see them from my Windows machine?
Thanks,
Jesse
-
Jesse,
This will create a simple share on your KNOPPIX box.
Edit the file /etc/samba/smb.conf and add the following code to the bottom of the file:
[tmp]
comment = Test share
path = /tmp
writeable = yes
This will create a writeable share onthe KNOPPIX box named tmp and the shared folder is the /tmp directory.
Create a samba user on KNOPPIX box by entering the command
smbpasswd -a knoppix
You will be prompted for a password. This is the password that will be entered when you want to map the share from the Windows box. Of course you can create any username and password.
If Samba is not started, start it with /etc/init.d/samba start or restart it with /etc/init.d/samba restart. If you make changes to smb.conf you need to restart samba.
Also, run the program "testparm". It scans your smb.conf file for errors and will report them back to you.
From your Windows box map the share \\knoppix\tmp and use the user name and password you created above. You should get a writeable share.
Take a look at the comments in the smb.conf file. They will give you ideas on how the file works.
This should get you started. Good luck!
Mike
-
Samba question
Thanks for the tips about Samba.
Question:
I mapped a share to my NT file server. However, it was read only. This file server is NTFS. Is there a risk in writing to this share via Samba? If not, how do I change the status of the server share so I can write to it?
Thanks,
Darke
-
I started editing the cmb.conf file, and when I tried to save it, I was told "Unable to write file". I don't know if the /etc/.. is part of the CD or not. Maybe I need to start by installing this to my hard drive? Or is there some other way around this?
Thanks,
Jesse
-
Sorry I can't help here. Maybe someone can answer if smb.conf is made writeable somewhere after the CD is running???
-
Senior Member
registered user
SaMBa Help
Hello, I not 100% positive on this one, but I believe that the /etc directory is stored in RAM so you should be able to edit it, but you will have to have root permissions to write to your /etc/smb.conf file, (1) use <CTRL> <ALT> <f2> to open the root console and then you could edit your smb.conf file from there.
or (2) If you are using KDE and want to use a graphical editor ie. kedit kate etc look in the menu for a superuser editor or start up the super user file manager, navigate to /etc and right click on the smb.conf file and select edit.
Note: if you're running from CD and your smb.conf file is stored in RAM you will lose it after a reboot, so make sure to do a KNOPPIX configuration save to floppy and maybe for insurance copy the smb.conf file to floppy as well just in case.
HTH
rock
-
Hi there,
To write to files in /etc while running Knoppix from a CD, using smb.conf as an example:
- It's easiest to be root first.
sudo passwd root
(enter your root password)
su
(enter your root password)
- Delete the symlink named /etc/samba/smb.conf (this points to the CDROM at /KNOPPIX/etc/samba/smb.conf)
rm /etc/samba/smb.conf
- Make a new (real) copy of smb.conf, which gets stored in memory instead of the CD
sudo cp /KNOPPIX/etc/samba/smb.conf /etc/samba/
- Edit it and do stuff!
vi /etc/samba/smb.conf
Cheers,
- Andrew
andrew (at) solutionsfirst.com.au
-
Senior Member
registered user
So can I just write a script that removes a bunch of config files, then creates new sysmlinks that point to actual config files that I keep on a floppy, and restarts any daemons that need restarting? And then I just run the script as root everytime I boot from the CD?
Similar Threads
-
By ghostblaze in forum General Support
Replies: 4
Last Post: 11-04-2004, 03:14 AM
-
By jimbo62 in forum Networking
Replies: 4
Last Post: 08-15-2004, 03:22 AM
-
By smarchand291 in forum General Support
Replies: 0
Last Post: 11-08-2003, 11:41 PM
-
By juan_sck in forum General Support
Replies: 2
Last Post: 10-17-2003, 01:36 PM
-
By Tovi in forum General Support
Replies: 4
Last Post: 04-21-2003, 08:42 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture](/store/img/g/pB0AAOSwrbRkIWhk/s-l225/Fanxiang-4TB-2TB-1TB-SSD-550MB-s-2-5-SATA-III-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot
$219.99
![Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III 560MB/s Internal Solid State Drive lot picture](/store/img/g/0dMAAOSw99Zl7sby/s-l225/Fanxiang-4TB-2TB-1TB-SSD-2-5-SATA-III-560MB-s-Inte.jpg)
Fanxiang 4TB 2TB 1TB SSD 2.5'' SATA III 560MB/s Internal Solid State Drive lot
$188.09
![Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture](/store/img/g/yKsAAOSwNPJlqMdQ/s-l225/Fanxiang-SSD-4TB-2TB-1TB-PS5-SSD-M-2-NVME-SSD-7300.jpg)
Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive
$269.99
![Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture](/store/img/g/vt0AAOSwAgVls0tY/s-l225/Fanxiang-M-2-SATA-SSD-2TB-1TB-512GB-256GB-SSD-Inte.jpg)
Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot
$109.99
![Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5](/store/img/g/RzIAAOSwSZNlN-zB/s-l225/Patriot-P210-128GB-256GB-512GB-1TB-2TB-2-5-SATA-3-.jpg)
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$15.50
![1080PRO 4TB SSD Solid State Hard Drive Ngff M.2 SSD Gaming Internal Hard Disk picture](/store/img/g/ADkAAOSwHoFmfNEh/s-l225/1080PRO-4TB-SSD-Solid-State-Hard-Drive-Ngff-M-2-SS.jpg)
1080PRO 4TB SSD Solid State Hard Drive Ngff M.2 SSD Gaming Internal Hard Disk
$32.99
![Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006 picture](/store/img/g/sC4AAOSwvtdmGzk0/s-l225/Western-Digital-256GB-M-2-PCIe-NVMe-SSD-PC-SN740-M.jpg)
Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006
$16.99
![240GB 250GB 256GB SSD SATA 2.5](/store/img/g/m9QAAOSwg8lmiCrf/s-l225/240GB-250GB-256GB-SSD-SATA-2-5-Solid-State-Drive-M.jpg)
240GB 250GB 256GB SSD SATA 2.5" Solid State Drive MIXED BRAND APPLE LAPTOP -
$13.99
![Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture](/store/img/g/pJUAAOSwFaRkhuj-/s-l225/Netac-1TB-2TB-512GB-Internal-SSD-2-5-SATA-III-6Gb-.jpg)
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$119.99
![4TB Ssd 870evo Internal Solid State Drive Hard Disk 2.5 Inch Sata SSD For Laptop picture](/store/img/g/mmsAAOSwWEdmhkFQ/s-l225/4TB-Ssd-870evo-Internal-Solid-State-Drive-Hard-Dis.jpg)
4TB Ssd 870evo Internal Solid State Drive Hard Disk 2.5 Inch Sata SSD For Laptop
$47.99