openSUSE Forums > Network/Internet » Problems with samba server

Go Back   openSUSE Forums > Network/Internet
Forums FAQ Members List Search Today's Posts Mark Forums Read


Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Aug-2009, 17:04
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 9
ktix007 hasn't been rated much yet
Unhappy Problems with samba server

Hi! I was following this guide about porting windows forms apps to linux using Mono: Guide: Porting Winforms Applications - Mono
But it uses an older version of OpenSuse (10.2) and the VMWare image that I have is Opensuse 11.1 and I can't find the "Samba server" option in "Network Services".

Quote:
# Click the "Computer" menu in the bottom left, choose Control Center.
# Choose "YaST" at the bottom, the password is "mono".
# Choose "Network Services", then "Samba Server".
# Check "Allow Users to Share Their Directories" on the "Shares" tab.
# Choose "Finish".
Can you tell me where I can find this option or another way to do whatever it does?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 28-Aug-2009, 17:27
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,851
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: Problems with samba server

You can edit /etc/samba/smb.conf directly via your favorite editor. I prefer using a CLI edtitor like pico, but thats a matter of personal preference. As with many servers, they often run without graphical desktops, so manual configuration is necessary. (I had such a task assigned to me this week). If you have a graphical desktop, you might like to use

kdesu kwrite /etc/samba/smb.conf (KDE Desktop)

gnomesu gedit /etc/samba/smb.conf (Gnome Desktop)

Swerna's excellent samba guide is a useful reference for configuring smb.conf as required.
Reply With Quote
  #3 (permalink)  
Old 28-Aug-2009, 17:52
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 9
ktix007 hasn't been rated much yet
Default Re: Problems with samba server

I did what you told me and I get this:
Code:
[global]
	workgroup = MONO
	security = user
	passdb backend = smbpasswd
	username map = /etc/samba/smbusers

[homes]
	inherit acls = Yes
	browseable = No
	read only = No

[htdocs]
	inherit acls = Yes
	browseable = Yes
	path = /srv/www/htdocs/
	read only = No
In the guide it says I have to Allow Users to Share Their Directories. What do I have to change?
Reply With Quote
  #4 (permalink)  
Old 28-Aug-2009, 18:45
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,851
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: Problems with samba server

You need to add share entries . For example, a publicly shared directory

[shared]
path = /path/to/shared/directory
public = yes
only guest = yes
writable = yes
printable = no

Lots more share examples here.

If you explain how you want to set up access (with/without passord, which group(s), r/w access), then someone may be able to help create the exact entry required. I'm sure you'll figure it out if you take the time to read the examples though.


BTW: Don't forget to restart the samba server if you make changes to smb.conf
Reply With Quote
  #5 (permalink)  
Old 28-Aug-2009, 20:51
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,883
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: Problems with samba server

Don't fixate on the old "allow users to share directories....". The wording leads ppl to think that's a good way to share stuff over Samba. It's not much good at all, just a beginning, and better set elsewhere.

Have a read of this: Samba and Suse: HowTo Set up an openSUSE-Windows Home Office LAN/Network. Versions 10, 11
__________________
Drop in and visit some time.
Reply With Quote
  #6 (permalink)  
Old 28-Aug-2009, 21:01
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,883
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: Problems with samba server

Code:
[global]
       workgroup = MONO
       netbios name = name_of_this_workstation
       name resolve order = bcast host lmhosts wins
       server string = ""
       printing = cups
       printcap name = cups
       printcap cache time = 750
       cups options = raw
       use client driver = yes
       map to guest = Bad User
       local master = yes
       os level = 33
       usershare allow guests = Yes
       usershare max shares = 100
       usershare owner only = False

[homes]
	comment = Home Directories
	valid users = %S
	browseable = No
	read only = No
	inherit acls = Yes

[htdocs]
	path = /srv/www/htdocs/
	read only = No
       force user = billybob
(force user should be considered for htdocs if you make your htdocs over to ownership of "billybob" with sudo chown -r billybob:users /srv/www/htdocs)
__________________
Drop in and visit some time.
Reply With Quote
  #7 (permalink)  
Old 29-Aug-2009, 08:13
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 9
ktix007 hasn't been rated much yet
Default Re: Problems with samba server

Sorry but I don't use Linux usually and I don't understand half of the things.

Quote:
If you explain how you want to set up access (with/without passord, which group(s), r/w access), then someone may be able to help create the exact entry required.
This is what I need to do:

Quote:
To transfer the application to the Mono image, we need to create a NClass directory and turn on directory sharing.

* Right click the desktop, choose Create Directory, name the directory NClass.
* Click the "Computer" menu in the bottom left, choose Control Center.
* Choose "YaST" at the bottom, the password is "mono".
* Choose "Network Services", then "Samba Server".
* Check "Allow Users to Share Their Directories" on the "Shares" tab.
* Choose "Finish".
* Back on the desktop, Right click the "NClass" folder you created and choose "Sharing Options".
* Check "Share this folder" and "Allow other people to write to this folder".
* Click "Modify Share".
Reply With Quote
  #8 (permalink)  
Old 29-Aug-2009, 15:27
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,883
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: Problems with samba server

You can do all those steps -- if you're using Gnome Desktop. Are you?
If not using Gnome, there's a different way to do it. And even if using Gnome, there's an optional alternate way to do it.

Q1: What are you using, Gnome or KDE?

Q2: and is there (in your case) really a directory called NClass on the Desktop?

Q3: I'm wondering which Samba RPMs you have installed. Can you run this command and copy the results back here:
Code:
rpm -qa | grep samba
__________________
Drop in and visit some time.
Reply With Quote
  #9 (permalink)  
Old 29-Aug-2009, 17:23
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 9
ktix007 hasn't been rated much yet
Default Re: Problems with samba server

Q1: I'm using GNOME
Q2: The directorie on my desktop is called "GDH"
Q3:
Code:
samba-3.2.7-11.3.2
samba-client-3.2.7-11.3.2
Reply With Quote
  #10 (permalink)  
Old 29-Aug-2009, 17:33
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,883
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: Problems with samba server

AHA -- I think we've found the problem. Go to Yast --> soptware module and install the apps yast2-samba-server and yast2-samba-client. Then try again for the module "samba server" in Yast --> network services. While you're installing software, make sure the nautilus sharing tool is installed. The RPM is nautilus-share.
__________________
Drop in and visit some time.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks

Tags
mono, opensuse, problems, server, smba


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2