hello I have three users u1 ,u2 and u3 I have a share named "mrt" and it has two subfolder "mrt1" and "mrt2". what i have to do is that when u1 logs in mrt it should view all the contents inside mrt (including contents of its subfolderand all) and when u2 logs into mrt it should view mrt1 and restrict mrt2 and in same way when u3 logs into mrt ,it could access mrt2 and restrict mrt1 how should i do this ?? please Help!!!! thankyou _________________________________________________________________ Windows 7: Find the right PC for you. Learn more. http://windows.microsoft.com/shop
Look at the issue "dont descend" in the [mrt] config. Daniel ----------------------------------------------- EDV Daniel M?ller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 T?bingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: mueller at tropenklinik.de Internet: www.tropenklinik.de ----------------------------------------------- -----Urspr?ngliche Nachricht----- Von: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] Im Auftrag von himmat baldaniya Gesendet: Dienstag, 19. Januar 2010 09:39 An: samba samba Betreff: [Samba] subfolder level restriction hello I have three users u1 ,u2 and u3 I have a share named "mrt" and it has two subfolder "mrt1" and "mrt2". what i have to do is that when u1 logs in mrt it should view all the contents inside mrt (including contents of its subfolderand all) and when u2 logs into mrt it should view mrt1 and restrict mrt2 and in same way when u3 logs into mrt ,it could access mrt2 and restrict mrt1 how should i do this ?? please Help!!!! thankyou _________________________________________________________________ Windows 7: Find the right PC for you. Learn more. http://windows.microsoft.com/shop -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Daniel M?ller wrote:> Look at the issue "dont descend" in the [mrt] config. > Daniel >"dont descend" affects the share regardless of who connects to it. To create different views for different users would require creating several shares with different "dont descend" values.> when u1 logs in mrt it should view all the contents inside mrt (including contents of its > subfolderand all) > and when u2 logs into mrt it should view mrt1 and restrict mrt2 and in same > way when u3 logs into mrt ,it could access mrt2 and restrict mrtI think unix permissions would be the obvious solution. Create groups called g1 and g2, add u1 to both groups, u2 to g1 and u3 to g2. Then chown root.g1 mrt1 , chown root.g2 mrt2 and chmod them both to 770 (or 750). If you want more flexibility, you can use ACLs (assuming your FS and OS support them). *Michael Heydon - IT Administrator * michaelh at jaswin.com.au <mailto:michaelh at jaswin.com.au>