Sponsored Content
Top Forums UNIX for Advanced & Expert Users Help with file permissions and file ownerships Post 302282461 by pludi on Saturday 31st of January 2009 08:52:28 AM
Old 01-31-2009
No. In UNIX you can set for each file the owner, the group and the permissions. You can't set per-user or per-group permissions using default tools.
What you'll probably want is this:
Code:
# chmod 0744 file
# chown user2:group2 file

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file permissions: l

Hello, what does the l file permission stands for and in which UNIX systems can it be used? (1 Reply)
Discussion started by: Tobe
1 Replies

2. Cybersecurity

help with file permissions

Every time I copy files to a directory I am unable to edit the files. Why? The user is part of the group that has permissions to edit. The user can create and delete files but cannot edit files that are copied to the directory? :confused: (3 Replies)
Discussion started by: bbbngowc
3 Replies

3. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

4. Shell Programming and Scripting

file permissions

Hi all, My UNIX box is HP UX - 11.11. I have got a basic doubt. What are the global permissions for a file and directory? I set the mask as 111 in my .profile. When I create a new file, it gets created withe -rw-rw-rw- permissions. A directory is created with drw-rw-rw- permissions. So, i... (7 Replies)
Discussion started by: ranj@chn
7 Replies

5. UNIX for Advanced & Expert Users

File Permissions

Hi All, Could any one help me on is there any file where all file permissions are being stored? Please help me. (10 Replies)
Discussion started by: umesh.rout
10 Replies

6. Shell Programming and Scripting

Retain file permissions when saving .sh file from internet [OS X]

Hello. I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
Discussion started by: baza210
4 Replies

7. Shell Programming and Scripting

We need to change the file permissions and ownerships?

I am running a linux centos server; our php script generates plenty of files in a directory, anything up to 1000 (though too often more).The files in these directories have permissions and ownerships which i need to change. I have used shell comment for changing the file permission which is... (1 Reply)
Discussion started by: nilson
1 Replies

8. Solaris

file permissions

There is the following file in my filesystem (VXFS) shown by "ls -l" command: ---s--l--- 1 user group 0 Mar 26 16:13 file.tmp What does "l" bit mean in these permissions? This is SunOS 5.10: $ uname -a SunOS hostname 5.10 Generic_144488-03 sun4u sparc SUNW,SPARC-Enterprise ... (2 Replies)
Discussion started by: darkshine
2 Replies

9. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

10. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies
dspam_clean(1)							       DSPAM							    dspam_clean(1)

NAME
dspam_clean - perform periodic maintenance of metadata SYNOPSIS
dspam_clean [--profile=PROFILE] [-s[signature_life]] [-p[probability_life]] [-u[sl,hcl,shl,ihl]] [user1 user2 ... userN] DESCRIPTION
dspam_clean is used to perform periodic housecleaning on DSPAM's metadata dictionary by deleting old or useless data. OPTIONS
--profile=PROFILE Specify a storage profile from dspam.conf. The storage profile selected will be used for all database connectivity. See dspam.conf for more information. -s Performs stale signature purging. If a value is specified, the default value of 14 days will be overridden. Specifying an age of 0 will delete all signatures from the user(s) processed. -p Deletes all tokens from the target user(s) database whose probability is between 0.35 and 0.65 (fairly neutral, useless data). If a value is specified, the default life of 30 days will be overridden. It's a good idea to use this flag once with a life of 0 days for users after a significant amount of corpus training. -u Deletes all unused tokens from a user's dataset. Four different life values are used: sl Stale tokens which have not been used for a long period of time hcl Tokens with a total hit count below 5 (which will be assigned a hapaxial value by DSPAM) shl Tokens witha single spam hit ihl Tokens with a single innocent hit Ages may be overridden by specifying a format string, such as -u30,15,10,10 where each number represents the respective life. Speci- fying a life of zero will delete all unused tokens in the category. user1 user2 ... userN Specify the username(s) to perform the selected maintenance operations on. If no username is specified, all users are processed. EXIT VALUE
0 Operation was successful. other Operation resulted in an error. COPYRIGHT
Copyright (C) 2002-2011 DSPAM Project All rights reserved. For more information, see http://dspam.sourceforge.net. SEE ALSO
dspam(1), dspam_admin(1), dspam_crc(1), dspam_dump(1), dspam_logrotate(1), dspam_merge(1), dspam_stats(1), dspam_train(1) DSPAM
Apr 17, 2010 dspam_clean(1)
All times are GMT -4. The time now is 05:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy