setting file access restriction


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers setting file access restriction
# 1  
Old 07-27-2007
setting file access restriction

is there a way to "lock" an entire directory to where it currently resides for securtiy purposes? only certain users can access these data, however i want to prevent the possibility of transferring/duplicating the data to where other unauthorized users can access it. Any one who knows a good solution for this? Thanks a lot!
# 2  
Old 07-27-2007
I doubt if you could do that. Any user that can read a file can also copy it to some other location. For that matter, the user can even run 'cat' on a file, copy and paste the information in a txt file on his/her desktop, send the file out via mail.

It basically works out to only allowing trusted users to access sensitive data, and then trusting those users to not leak that data to anyone else.
# 3  
Old 07-27-2007
blowtorch, the data are not textual in nature.
thanks for the comment. i thought this is going to be tough.
anyone has other comments please?
# 4  
Old 07-28-2007
To block a certain directory for restricted access

This is general guidence, brain-storming.


1-Information are not text (images?).
2-Block the directory for only certain users.
3-Prevent users who have access to this data, from moving this data somewhere else.

step 1& 2 are possible, step 3 is impossible just like blowtorch said. You have to do hardware restrictions, network security control, namely VLAN and access-lists, plus-like blowtorch discribed- social engineering

but for step 1 & 2 (P.S. this is basic UNIX knowledge, deep apologies if you know it already)

1st;make a new user group, say it's name is 'secureGrp'

[root@localhost /root]#groupadd secureGrp
[root@localhost /root]#vim /etc/groups

your group should appear in the bottom, something like

secureGrp::x:500:

2nd; add users to this group after the last colon, seperated by commas (in Linux & BSD)

secureGrp::x:500:OwnerOfSecureDir,secureUser1,secureUser2,secureUser3

save file and exit

3rd; change the directory permissions (say that it is in /home/secureDir/) to : owner=OwnerOfSecureDir, group=secureGrp, owner can read&write, group can read, others none.

[root@localhost /root]#chmod -R 640 /home/secureDir
[root@localhost /root]#chown -R OwnerOfSecureDir /home/SecureDir

the -R is for recursive of everything in the directory

(risking blame for posting a tutorial Smilie )
# 5  
Old 07-29-2007
hi sadistic_anger, thank you for the detailed post. I didnt have any problem setting the user and group permission for the data, and what I did was exactly what you described.

> You have to do hardware restrictions, network security control, namely VLAN and access-lists, plus-like blowtorch discribed- social engineering

ok another department takes care of this--

thanks a lot!!!

Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris local access restriction other than sshd_config?

Hi All, As part of LDAP implementation we need to restrict users/groups locally on solaris machine: Options tried: sshd_config: as far as my testing it is restricting either user or group, as per the first preference. pam_access.so by default I am unable to find(need some help if this is... (0 Replies)
Discussion started by: Sridaran
0 Replies

2. Shell Programming and Scripting

Need a script to create file permission change restriction

Hello, I am looking for a UNIX shell script which can help me for access restriction. 1) /home/ram, there are number file with .txt extension, which should be only owned "ram" user. like as below ls -lrt *.txt -rwx------ 1 ram dba 11 Jan 4 2015 PASS1.txt -rwx------ 1 ram dba 10 Jan 4... (8 Replies)
Discussion started by: mr.trilok
8 Replies

3. Solaris

Sudo -s restriction

Is there a way to stop users envoking a root shell with sudo on Solaris 10. I want users to use sudo <cmd> but not sudo -s (5 Replies)
Discussion started by: u20sr
5 Replies

4. IP Networking

Help setting up a wireless access point

Hello, A friend of mine just purchased a DLINK 8500AP and I'm trying to help him set up wireless internet in his house. His computers are connected to one of two switches, which are both hooked up to his DSL modem. I connected the 8500AP to one of the switches. According to the instruction... (3 Replies)
Discussion started by: dorik
3 Replies

5. Linux

SFTP user access restriction to his home dir

Hi Friends, I have installed a FTP Server on my Linux machine (Fedora 11). I want the ftp users to be restricted to their own home dir using sftp. But the said condition is met when the user logs in using ftp over port 21 and when the user logs in using sftp i.e. protocol 22, he/she has... (4 Replies)
Discussion started by: pashy
4 Replies

6. UNIX for Dummies Questions & Answers

Need help in setting access to unix server

I am performing some work for a small business that has no IT staff. They contract out work from time to time for their IT needs. What they would like to do is grant access to an AIX 5.3 server for some external customers to perform some application testing. They are running Active Directory... (3 Replies)
Discussion started by: texassynergy
3 Replies

7. UNIX for Dummies Questions & Answers

Setting permissions and restricting access

Hi all, I have user called "Z". The home directory is /home/Z. I have another directory /home/Z/OP. Within /home/Z/OP, i have 2 directories /home/Z/OP/OP1 and /home/Z/OP2. I want to restrict access for Z to only access /home/Z/OP and /home/Z/OP1 and /home/Z/OP2. What kind of... (4 Replies)
Discussion started by: new2ss
4 Replies

8. UNIX for Dummies Questions & Answers

Setting up FTP access to my Tomcat Dir

Hi Guys, Im trying to set up FTP to my Apache Tomcat dir on my server so my web designer can FTP in and look at things in a live environment. However at first I couldn't write to the dir, so i change some permissions, and now I cant access it at all! Here is my LS -all output: ... (4 Replies)
Discussion started by: boarderstu
4 Replies

9. UNIX for Dummies Questions & Answers

sendmail 8.9 file size restriction

We use version 8.9 of sendmail. I am wondering if there is a file size restriction that limits the size of the file to be sent? If there is how can I check to see? Thanks (1 Reply)
Discussion started by: dtooth71
1 Replies
Login or Register to Ask a Question