a mounted portion is not accessible via samba server

i have mounted a portion in main root directory. and then make 2 sub-folders in sight and share them on the network. but even valid users can not access, only see the.
where /fileshare is the mounted portion, and maths and itdept are shared sub-folders

**[x-ray]
path = /fileshare/maths
read only = no
guest ok = No
browseable = yes
create mask = 0660
directory mask = 0770
valid users = jane w8swasi

[nurse]
path = /fileshare/itdept
read only = no
guest ok = No
browseable = yes
create mask = 0660
directory mask = 0770
valid users = jane w8swasi**

Have you added jane and w8swasi to the Samba user database?

yes they are the part of linux and samba server.

well these users were sharing the file with home and root directory but since i have created a new logical volume with ext3 and when i mounted this volume i can see on network but is not accessable

You said:

i can see on network

  • What version of openSUSE is the server?
  • What operating system is running on the client (e.g. windows/Linux/Suse) and what release/version (e.g. 2000/xp/SUSE10.0)?
  • What network browser are you using and what version?

You said:

but is not accessable

What do you do (like click on the server_name icon) and what do you get (like an error statement)?

ITS OPENSUSE 11.1 with samba 3 for windows xp and vista on clint side,

the error message is **\fileserver\file-name is not accessible path not found or ask administrator **

  • Please post the [global] stanza of smb.conf
  • Please post the return you get from: sudo /usr/sbin/rcnmb status
  • Please post the return you get from: ls -l /fileshare

yes when i click the shared folder then i get this message and if i click on old shares which is on home and root folder they work normally.
so what do you suggest, because i do not want to format the hard disk and make bigger home and root partitions.

I think it’s the permissions on the shared folders. So answer the three Qs and we’ll see.

Got to goto work now. I’ll try to look from there later

  1. [global]
    workgroup = WORKGROUP
    netbios name = school-share
    name resolve order = bcast host lmhosts wins
    server string = “”
    printcap name = cups
    cups options = raw
    use client driver = yes
    map to guest = Bad User
    local master = yes
    preferred master = yes
    os level = 65

  2. rcnmb status running

  3. drwxrwx— 4 root users 4096

It all looks good on the surface but a few things aren’t clear because you have made the situation ambiguous by approximating or abbreviating your answers:

  1. I don’t understand this return: “drwxrwx— 4 root users 4096” you gave me. It should be like this:

drwxrwx— 5 root users 4096 2009-05-01 22:46 maths
drwxrwx— 5 root users 4096 2009-05-01 22:46 itdept
what is it exactly?

  1. This path can’t exist:

\fileserver\file-name

What exactly was the error report.

And please post the return you get from this command: sudo pdbedit -L

i tried it again, i made a new LVM fileshare and then mount it by the name /fileshare and made 2 folders and shared them and when i try to access it from windows-xp i got the same not accessible message.

I can’t help until you give me the information I’ve asked for. Here it is again:

Can you please answer these four questions, exactly:

  1. exact response to this command: sudo pdbedit -L
  2. exact response to this command: ls -l /fileshare/
  3. and since you’ve altered the shares, the exact response to this command: cat /etc/samba/smb.conf
  4. and finally, the exact words in the error message

i got it it working but for my surprise when i change the permissions from
chmod 770
to
chmod 777
on that newly mounted LVM Partition; sub folders. and if i try to change it back to chmod 770 it again become unaccessible.

can you explain it to me Sir swerdna because i am totally confused.

oh Sorry i didn’t look the other page. so here are the answers

  1. sudo pdbedit -L
    w8swasi:1001:salemon wastroph
    sherry:1000:sherron owen

2.ls -l /fileshare/
drwx------ 2 root root 16384 May 1 07:48 lost+found
drwxrwxrwx 3 root root 4096 May 1 08:49 maths
drwxrwxrwx 2 root root 4096 May 1 08:51 itdept

  1. response of cat /etc/samba/smb.conf

**[global]
workgroup = WORKGROUP
netbios name = school-share
name resolve order = bcast host lmhosts wins
server string = “”
printcap name = cups
cups options = raw
use client driver = yes
map to guest = Bad User
local master = yes
preferred master = yes
os level = 65

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

[maths]
path = /fileshare/maths
read only = no
guest ok = no
browseable = yes
valid users = w8swasi

[itdept]
path = /fileshare/itdept
read only = no
guest ok = no
browseable = yes
valid users = w8swasi sherry**

now both folders are accessible with chmod 777 and not with chmod 770 now this lead to another problem which is now if i want to access any folder from any other computer. then i got the following message not the login screen. and this is the same message i use to got before

  1. //school-share/maths path is not accessible for the current user. the user does not have permission to access this file please contact administrator to access this folder

On Fri May 1 2009 08:46 am, w8swasi wrote:

>
> i got it it working but for my surprise when i change the permissions
> from
> CHMOD 770
> to
> CHMOD 777
> on that newly mounted LVM Partition; sub folders. and if i try to
> change it back to chmod 770 it again become unaccessible.
>
> can you explain it to me Sir swerdna because i am totally confused.
>

2.ls -l fileshare
DRWX------ 2 ROOT ROOT 16384 MAY 1 07:48 LOST+FOUND
DRWXRWXRWX 3 ROOT ROOT 4096 MAY 1 08:49 MATHS
DRWXRWXRWX 2 ROOT ROOT 4096 MAY 1 08:51 ITDEPT

w8swasi;
Samba must obey the Linux permissions. With permissions set at 770 only
the owning user (in your case root) and the owning group (in your case root)
have rwx permissions. I assume that neither of your users are in the root
group, so they have no rights on the folders. When you set the permissions
to 777 you gave all users rwx permissions on the folder. You could achieve
the same thing by changing the owning user and or owning group. Here is an
article on Linux permissions that might help explain:
http://www.zzee.com/solutions/linux-permissions.shtml

You can find a lot more with GOOGLE


P. V.
“We’re all in this together, I’m pulling for you.” Red Green