Lock the required folder


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Lock the required folder
# 1  
Old 02-21-2007
Java 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.
# 2  
Old 02-21-2007
"man htpasswd" if web server is installed.
# 3  
Old 02-21-2007
Web Server is not installed.

Sorry Sysgate.

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

Regards,
Ganapati.
# 4  
Old 02-21-2007
might work

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
# 5  
Old 02-22-2007
Java

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.
# 6  
Old 02-22-2007
try using the chattr -au <file/folder>
# 7  
Old 02-22-2007
Data

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
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