Link to home
Start Free TrialLog in
Avatar of Goutham
GouthamFlag for India

asked on

symlinks not accessible from samba

Dear Experts:

Recently configured suse enterprise linux as samba domain controller with ldap as passwd backend. Everything is working fine but when created a symlink for the directory with the rwx for the user orange like below
# ln -s /users/Company_Secretarial/ /home/orange
user orange getting an error "Location not availble and Access denied", when clicked on Company_Secretarial link which is available in his home directlory. user has rwx permission for the directory Company_Secretarial .
Also tried the by adding the below lines:
follow symlinks = yes
wide links = yes
unix extensions = no
and restart the smb services still the same problem.

Please help




Avatar of arnold
arnold
Flag of United States of America image

Look at the permissions on /users/Company_Secretarial/ does user orange have rights there?

Do you have selinux enabled? What is the context on the /users/Company_Secretarial/
Are there any events recorded in /var/log/messages /var/log/audit/audit.log?
how about samba logs?
Avatar of Goutham

ASKER

Sir,Thanks for the reply.
Permission for the user orange for the directory is set with rwx also when the the user orange does login through the terminal with
su - orange
user orange is able to cd to the Company_Secretarial and create files or directory and delete as well.
But while accessing from the samba share of his home directory he is unable to access the soflink directory.
As this is an suse enterprise linux iam not finding selinux.

attached sambaconfig and auditlog for your reference below posted var/logmessages
Jan  1 15:00:55 ldap slapd[3210]: <= bdb_equality_candidates: (sambaSIDList) not indexed
Jan  1 15:00:55 ldap slapd[3210]: <= bdb_equality_candidates: (sambaSIDList) not indexed
Jan  1 15:00:55 ldap slapd[3210]: <= bdb_equality_candidates: (sambaSIDList) not indexed
Jan  1 15:00:55 ldap slapd[3210]: <= bdb_equality_candidates: (sambaGroupType) not indexed
Jan  1 15:00:55 ldap slapd[3210]: <= bdb_equality_c




Please help
sambaconfig.txt
Add the follow symlinks and wide links into the[users] definition block.

The difficulty might be that /user/Company has no meaning to the system where the share is mounted.

What about the samba log?  The audit logs reflects errors dealing with samba, but does not seem that it is in any way interfering with the partition traversal.
Avatar of Goutham

ASKER

Sir, Thank you very much. Now it is working but the problem is users are able to delete the symlink which is created under their home directory however data is safe in the orginal path still i want to restrict the user deleting the symlink. Please help
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial