Linux shared folder with password?

CeeBee

Expert Member
Joined
Jul 27, 2006
Messages
2,281
Reaction score
101
Location
Pta mostly
Hi guys,
Who's the Linux experts here, who wud be willing to give (for u, I'm sure) 5mins worth of advice?
I'm very new to Linux, want to start learning, ....
Set up a pc with SUSE 10, want to set up a shared folder, for each of the Windows users (some XP Pro, some XP Home, some Win98/Me), but with password request, so each person only has access to his own folder.
I've tried this method from :
http://www.joeaudette.com/setupsamba.aspx
to set up a shared folder with Samba server, but changing some settings I either have no acces to the folder from Windows, or completely open access - no pw.
I can list the settings in the smb.conf, if that cud help find the prob?
Any ideas? This is still all geek to me :D :confused: :eek:
 
First of all, each user needs to have a linux system account on the box. Unfortunately you can't get away with just having samba users (AFAIK).

By default, each user will have access via samba to his linux home folder, usually /home/username.

You need to add the linux users to the samba user database.

(commands may differ slightly)
Step 1: Create the linux user
adduser <username> # To add the user
passwd <username> # To set the password

Step 2: Add user to SMB database
smbpasswd -a <username> # To add the user
smbpasswd <username> # To set the password. This is the "Windows" password that is prompted for when you connect to the share. It does not (and probably should not) be the same as the linux system user password.

Now the user should be able to access \\yoursambaserver\theirusername
 
I'm not sure what Suse has in the way of Samba config tools.
Kubuntu has a built in Samba shares tool but you can take a look at webmin which most likely also exists for Suse.
Webmin runs as a web service so you can connect to it with a browser and it makes the whole Samba configuration a lot simpler to manage.
 
Ubuntu 7.04

as a follow up on this folder share problem.... I downloaded Ubuntu 7.04, and see that it has file sharing, also with option of sharing by IP address.
This would work for me, as I should be able to give only a certain (or range) IP/computer access to a folder, so then password is not needed.
Only crap is - I cant get it working :mad:
When I go to System, Administration, Shared folders, a message pops up saying "Sharing services is not installed, need to install either.... Samba or NFS..."... so how can I install it?
I found on the ubuntu guide, must enter : sudo apt-get install samba smbfs, but all I get is that "samba is not available", even tried : sudo apt-get install samba (without smbfs, which works on v5.04), but still no luck.
I have even downloaded another 7.04 image from another site, as well as the server edition, but all same messages.
Am I to believe that samba file sharing is just not available on Ubuntu 7.04 :confused:
I'm sure this cud just be another case of the problem being between keyboard and chair :D , but cud anybody help with sum advise? or where can I download samba to install? thought file sharing one of the basic requirements for most users
 
Last edited:
When I go to System, Administration, Shared folders, a message pops up saying "Sharing services is not installed, need to install either.... Samba or NFS..."... so how can I install it?

Make sure you're on the internet, then go to "Shared folders", check which of those you want and click "Install services" on that same dialog. If that doesn't work, update your package list in Synaptic, then go back there and try that again.

If you don't have an internet connection, you'll have to find out which packages you want, then go to Synaptic, check them, go to File -> Generate download script, edit the script and add a space on each line after -c (so wget -chttp://... becomes wget -c http://..., yes it's a bug), copy that script to another Linux box with an internet connection, run it, take the downloaded files back, and in Synaptic go to File -> Add downloaded packages.
 
aaah nuts! I'm connected to internet, I open System, Administration, Shared Folders, it comes up with "Sharing services not installed...." I select Install windows support (smb), and Install services... the window goes away, the little cursor icon spinning around a few secs, then popup window is back...
Looking at the Synaptic package installer shows all installed...
 
Top
Sign up to the MyBroadband newsletter
X