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**
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
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.
[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
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:
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?
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 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
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
//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
>
> 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