Lock the required folder


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Lock the required folder
# 8  
Old 02-27-2007
Question pls explain "chattr" ?

can any one pls explain about "chattr" ?

Rgds,
Ganapati. Smilie
# 9  
Old 02-27-2007
Quote:
Originally Posted by ganapati
can any one pls explain about "chattr" ?

Rgds,
Ganapati. Smilie
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.

Last edited by Deal_NoDeal; 03-01-2007 at 02:30 PM..
# 10  
Old 03-05-2007
may be
you can define in profile for access user with what dire.
# 11  
Old 03-07-2007
Error

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. Smilie
# 12  
Old 03-12-2007
Quote:
Originally Posted by ganapati
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. Smilie
Did you try the "setfacl" which I suggested. What issues did you have with the command ?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Request for Shell script to move files from Subfolder to Parent folder and delete sub folder

Hi Team, I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder. Eg: parent folder --> /Interface/data/test/IN Sub folder -->/Interface/data/test/IN/Invoice20180607233338 Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies

2. Shell Programming and Scripting

Shell scripting for moving folder specific files into target directory of that country folder.

I need help to write shell script to copy files from one server to another server. Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies

3. Red Hat

sftp configuration | to lock users to their home folder.

In generally I use vsftp but I want to improve our security so I decide to use sftp instead of vsftp. We know that ssh,scp and sftp are in openssh server. How can I lock only sftp user to their home folder? And to prevent some users for sftp like root as such in vsftp daemon? (3 Replies)
Discussion started by: getrue
3 Replies

4. UNIX for Advanced & Expert Users

Testing privileges -lock lockfile /var/lock/subsys/..- Permission denied

Hi all, I have to test some user priviliges. The goal is to be sure that an unauthorized user can't restart some modules (ssh, mysql etc...). I'm trying to automate it with a shell script but in same cases I got the syslog broadcast message. Is there any way to simply get a return code... (3 Replies)
Discussion started by: Dedalus
3 Replies

5. UNIX for Advanced & Expert Users

Help Required for copying a folder from one server to another

Hi all, I have a requirement in which i have to check the latest folder in server A and move the same to Server B with all the subdirectories and files. This has to be done automatically without providing password at each execution. Help me in the same. Thanks in Advance!!! (2 Replies)
Discussion started by: mick_000
2 Replies

6. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

Hello all, If anyone has time, I have a few questions: How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too. 1. How to lock the account after a few (like 3) invalid password attempts? 2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies

7. Shell Programming and Scripting

Getting required fields from a test file in required fromat in unix

My data is something like shown below. date1 date2 aaa bbbb ccccc date3 date4 dddd eeeeeee ffffffffff ggggg hh I want the output like this date1date2 aaa eeeeee I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies

8. Shell Programming and Scripting

File Management: How do I move all JPGS in a folder structure to a single folder?

This is the file structure: DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg DESKTOP/Root of Photo... (4 Replies)
Discussion started by: guptaxpn
4 Replies

9. Shell Programming and Scripting

Folder Lock in Unix

I am a new user of linux. I have 2 Queries 1) I recently started working with shell script, and now i plan to make a folder lock using a shell script. I have ubuntu 8.04 installed on my system. 2) When i searched on this forum all i got was mini-httpd, and apache2-utils package, but they... (2 Replies)
Discussion started by: tsunami
2 Replies

10. UNIX for Dummies Questions & Answers

how to lock keyboard without using lock command

how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device? thanks (7 Replies)
Discussion started by: dianayun
7 Replies
Login or Register to Ask a Question