Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a Linux box which should share a few directories to other systems over the LAN. The other systems are running linux as well.

I'd like to associate a different password for each folder without creating different users. Is there a way to achieve that?

Feel free to put NFS and SSH combos into the mix. The key point is that I need different passwords for different directories, like this:

EXPORTED DIR: /opt/dir1 PASSWORD: 'foo'

EXPORTED DIR: /usr/lib/dir2 PASSWORD: 'bar'

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Samba can do this with share level passwords. Each directory would be a different share with its own password defined in smb.conf.

share|improve this answer
    
+1. NFS isn't capable of password-based authentication unless you're using NFSv4 with Kerberos authentication. You almost certainly want to be using Samba. –  jgoldschrafe Nov 9 '10 at 16:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.