Lock the required folder

Hi friends,

5-6 users are using the same login in one of our Unix server.
My question is, Is it possible to lock some folder using seperate password other than login password by each user, so that that folder is not accessible to other users.

Please guide/suggest me.

Cheers~~
Ganapati.
Mysore. Karnataka State.
India.

"man htpasswd" if web server is installed.

Sorry Sysgate.

Web Server is not installed.
Any other alternatives to this?

Regards,
Ganapati.

This might work....try getting each individual user his / her own user id. Multiple people using the same login has its issues. In doing that you can have private folders without passwords.

-S

Hi Sowser,

Since 3-4 of us using admin login for different purpose, we don't want to create multiple user Id's.
Other than this, is there any other options? This will definitely help our learnings also. Please suggest me.

Ganapati.

try using the chattr -au <file/folder>

I dont know about chattr?

Currently Iam using solaris with below specifications:

[/opt/tuxedo/lokesha]showrev
Hostname: sunlc
Hostid: 830b64f7
Release: 5.9
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.9 Generic 112233-12 Mar 2004

Can you please explain me about "chattr"?

Ganapati

can any one pls explain about "chattr" ?

Rgds,
Ganapati. :mad:

You can set up acls (access control lists). See "man setfacl" and look for the example in the end. You can give specific user the desired permission for a folder.

E.g setfacl -m user:user1:--- folder1

This means "user1" has no access to "folder1". Play around to see if it works for you.

may be
you can define in profile for access user with what dire.

Many Thanks Pankaj and Deol for your reply,

But my original question is as below:

5-6 users are using the same login in one of our Unix server.
Is it possible to lock some folder using seperate user password (user's own password) other than login password by each user (but login is same for all the user), so that that folder is not accessible to other users?

Please guide/suggest me.

Please drop a line if any one need more clarity on this.

With Regards,
Ganapati. :confused:

Did you try the "setfacl" which I suggested. What issues did you have with the command ?