Sponsored Content
Top Forums UNIX for Dummies Questions & Answers setting file access restriction Post 302128892 by blowtorch on Friday 27th of July 2007 04:04:46 AM
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.
 

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

9. 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
PTHREAD_RWLOCKATTR_GETPSHARED(3)			   BSD Library Functions Manual 			  PTHREAD_RWLOCKATTR_GETPSHARED(3)

NAME
pthread_rwlockattr_getpshared -- get the process shared attribute SYNOPSIS
#include <pthread.h> int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr, int *pshared); DESCRIPTION
The pthread_rwlockattr_getpshared() function is used to get the process shared setting of a read/write lock attribute object. The setting is returned via pshared, and may be one of two values: PTHREAD_PROCESS_SHARED Any thread of any process that has access to the memory where the read/write lock resides can manipulate the lock. PTHREAD_PROCESS_PRIVATE Only threads created within the same process as the thread that initialized the read/write lock can manipulate the lock. This is the default value. RETURN VALUES
If successful, the pthread_rwlockattr_getpshared() function will return zero. Otherwise an error number will be returned to indicate the error. ERRORS
The pthread_rwlockattr_getpshared() function may fail if: [EINVAL] The value specified by attr is invalid. SEE ALSO
pthread_rwlock_init(3), pthread_rwlockattr_init(3), pthread_rwlockattr_setpshared(3) STANDARDS
The pthread_rwlockattr_getpshared() function is expected to conform to Version 2 of the Single UNIX Specification (``SUSv2''). HISTORY
The pthread_rwlockattr_getpshared() function first appeared in FreeBSD 3.0. BSD
March 22, 1999 BSD
All times are GMT -4. The time now is 06:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy