I thought it would be easier to share a folder in openSUSE 11.4 but I had no luck.
OpenSUSE 11.4 comes with samba client and samba server packages already installed, I checked them just to be sure.
I tried to share a folder with right click in Nautilus but there didn’t exist an option. You need to install a package called nautilus-share and logout for changes to take effect. After succesfully installing this, I tried again with no success, it showed me an error which said:
‘net usershare’ returned error 255: net usershare: usershares are currently disabled
You can enable user shares through YaST, just go to Samba Server in the Network Services Group and in the tab “Shares” down below check the “Allow Users To Share Their Directories” and “Allow Guest Access”.
I tried once again just to found out another error:
‘net usershare’ returned error 255: net usershare add: cannot convert name “Everyone” to a SID. The connection was refused. Maybe smbd is not running.
I tried to start the samba service by hand but couldn’t do it. I was almost giving me up when I found this.
The solution was to open YaST and launch the “AppArmor Control Panel” in the “Novell AppArmor” group. Click “Configure” in the “Configure Profile Modes” section and toggle the “usr.sbin.smbd” and “usr.sbin.nmbd” profiles from “enforce” to “complain” and restart your computer.
Now you should be able to right click a folder and share it.
If you still have permission issues when trying to access from Windows, you can configure the share through YaST->Samba Server, after adding the share, select it and click Edit, then add the options
force user -> your_user
force group -> users