LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2006, 09:01 AM   #1
Thoddy
Member
 
Registered: Jul 2003
Location: Bremen, Germany
Distribution: Ubuntu 9.10
Posts: 106

Rep: Reputation: 15
Samba: I can see the shares but not access them !?


Hi all,

I have FC5 running on my local machine and XP on my notebook. I installed Samba and created the "needed" shares. I also added a Samba user with the same name and password as on the Windoze machine.

Now - I can see the FC5 machine from my XP notebook, can log into (by typing name and password) and see the defined shares. But when I want to access a share I get the follwong message:

"<sambaname> is not accessible. Check that you have permission. yada yada yada. The network path was not found."

Funny enough I get a similar behavior when browsing my Samba shares directly on the FC5 machine, I can see the sahres, but when I want to access one, I get:

"<name> couldn't be found. Perhaps it has recently been deleted."

It is definitely there and as the user logging in I also have the right to access it!

...maybe also interesting:
From the FC5 machine I can freely access everything shared on the XP notebook.

Any help appreciated!!
 
Old 03-31-2006, 10:21 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
Did you create the user in the samba database too ? "smbpasswd -a username" ?
 
Old 03-31-2006, 11:39 AM   #3
Thoddy
Member
 
Registered: Jul 2003
Location: Bremen, Germany
Distribution: Ubuntu 9.10
Posts: 106

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by marozsas
Did you create the user in the samba database too ? "smbpasswd -a username" ?
Yes, I did that...
 
Old 03-31-2006, 11:59 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
What is the permissions of the share on the server ?
The user must have access to the shared folder. The best way to archieve that is to make the directory on the server owned by root and rwx group access. The user must be in the same group the directory is. Add theses lines to the share section in smb.conf:
Code:
[yourshare]
        comment = Your Share
        path = /path/to/your/share
        force group = yourgroup
        read only = No
        create mask = 0660
        directory mask = 0770
        inherit acls = Yes
All files will be in the owned by the group yourgroup with rw access and directories as rwx.
 
Old 04-02-2006, 04:31 AM   #5
Thoddy
Member
 
Registered: Jul 2003
Location: Bremen, Germany
Distribution: Ubuntu 9.10
Posts: 106

Original Poster
Rep: Reputation: 15
No, sorry - still no change! I make an example: I share /mnt/data

Quote:
Originally Posted by marozsas
What is the permissions of the share on the server ?
ll /mnt/data

drwxr-xr-x 10 thoddy users 16384 Mar 26 16:21 data

Quote:
Originally Posted by marozsas
The user must have access to the shared folder.
Certainly I have - I am thoddy (as Linux user, as SMB user and as Win XP user) and thoddy is member of users (primary group). And one of the shares is the home directory - I certainly can access that! ;-)

Quote:
Originally Posted by marozsas
The best way to archieve that is to make the directory on the server owned by root and rwx group access.
Cannot do that since I also have an SSH running on this machine and must keep restricted access by user / group / others. I have to be able to rw, other member of user only r, and others not all all...

My global and share are now defined as:

Code:
[global]
	workgroup = home_net
	server string = A2600
	security = user
	encrypt passwords = no
	log file = /var/log/samba/%m.log
	max log size = 50
	printcap name = /etc/printcap
	dns proxy = No
	cups options = raw
	guest ok = no
	username map = /etc/samba/smbusers

[Data]
	comment = Data
	path = /mnt/data
	read only = no
	force group = users
	create mask = 0660
	directory mask = 0770
	inherit acls = yes
Thanks so far - but maybe there is still something I forgot!?
 
Old 04-02-2006, 05:20 AM   #6
baskar_k
LQ Newbie
 
Registered: Mar 2006
Posts: 12

Rep: Reputation: 1
Hi,
[global]
workgroup = home_net
server string = A2600
security = user
encrypt passwords = no
log file = /var/log/samba/%m.log
max log size = 50
printcap name = /etc/printcap
dns proxy = No
cups options = raw
guest ok = no
username map = /etc/samba/smbusers

[Data]
comment = Data
path = /mnt/data
read only = no
force group = users
create mask = 0660
directory mask = 0770
inherit acls = yes

in the above share definition valid users has bot been mentioned. please check it.
 
Old 04-02-2006, 05:24 AM   #7
Thoddy
Member
 
Registered: Jul 2003
Location: Bremen, Germany
Distribution: Ubuntu 9.10
Posts: 106

Original Poster
Rep: Reputation: 15
Hi all - thanks for your support!!

But the error has been something else - I simply had to turn off SELinux protection for the smbd and nmbd daemons... I did that via System->Admisitration->Security Level and Firewall.

I thought enabling Samba support in the firewall was enough - maybe one should turn off SELinux completely!? :-)

Now everythings's fine! ;-)

Thanks anyway!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't access samba shares [goldy] Linux - Software 14 08-21-2004 08:42 PM
Samba and MS Access Shares oneiltj Linux - Software 13 08-08-2004 08:11 PM
Can't access samba shares from xp ralupien Linux - Software 11 12-16-2003 01:12 PM
can't access samba shares from xp hemp4fuel Slackware 20 07-09-2003 01:28 AM
Samba and MS Access Shares oneiltj Linux - Software 3 03-18-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration