04-08-2011
Thanks to all for your time & input...Special thanks to Paberdo for the excellent tutorial material...
Thanks again
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
I'm trying to answer the following question about file permissions in Unix. Consider a file with the following permissions:
rwx---r--
I am not the owner of this file, but I am a member of the group of this file.
My question is: do I have read access to this file?
I thought... (3 Replies)
Discussion started by: Hook
3 Replies
2. HP-UX
netjk@rediffmail.com
I have a Shell Script (wrapper) that gathers parameters and invoke a base script (lets say B1). I have set the permission for this script as 711 (execute for everyone, group). When a user from another group try to execute the script, permission is denied (Cannot open file..)... (1 Reply)
Discussion started by: jsudha
1 Replies
3. Shell Programming and Scripting
Hi all,
ok here is my problem, my program below is reading lines in from a file (one at a time) and printing them out. my problem is that i want it to only print out 3 lines at a time on the screen, but the "read value" command in my code isnt working. Whats wrong? & what can i do to get this... (1 Reply)
Discussion started by: djt0506
1 Replies
4. UNIX for Dummies Questions & Answers
Hello all,
I need to write a little unix script to do some work on multiple files. I need to enter the filenames from the command line (scriptname <filename> <filename>. I have written the code to do double spacing, and some line numbering but it does not take multiple files from the command... (1 Reply)
Discussion started by: smn2003
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I am fairly new to Unix. My school computers have only UNIX installed on them, and I wish to use them to do some parallel computing. To do so, I need to transfer the files from my Windows computer to my Unix account on a different computer.
I am using the SSH login with the Putty client.... (2 Replies)
Discussion started by: Duchesne
2 Replies
6. UNIX for Dummies Questions & Answers
Dear all,
I got some questions abt how does the Unix kernel work
with the work with the other components. (step by step)
Can any body tell me some info abt that? if can provide
a example for each question that gonna be perfect!
Thank you!!!
1. How file management system work together... (2 Replies)
Discussion started by: melbdavid
2 Replies
7. Shell Programming and Scripting
Hello all,
I am trying to write a simple script that will parse through a text/properties file and check a couple of if statements.
Here is what I have so far:
FILENAME=$1
while read line
do
echo $line
done < $FILENAME
When I call ./simple.sh testfile.txt I recieve a file or... (7 Replies)
Discussion started by: lamagra
7 Replies
8. UNIX for Advanced & Expert Users
I am trying to FTP files from windows to UNIX (IBM AIX). After having sent the files to unix server. Permisssion of the files becomes 640 (rw-r-----). I have to manually login to unix and do chmod 644 on the folder to give it permission. Is it possible that the files automaically be set to 644 on... (2 Replies)
Discussion started by: puspendu.das.in
2 Replies
9. Shell Programming and Scripting
Hi ,
I just write a simple function to read the file line by line.
But when I run it it says out of memory.
I am not sure about the root cause, Can someone help me out of this?
:D
#! /usr/bin/perl
use strict;
sub checkAPs{
my $NDPDir = "/home/eweiqqu/NCB/NDP_files/";
... (1 Reply)
Discussion started by: Damon_Qu
1 Replies
10. UNIX for Dummies Questions & Answers
Experts: i want to change this permission back to the way it was:
Initial:
drwxr-xr-x 8 oracle oinstall 4096 Jun 5 15:21 oracle
Now: drwxr-xr-x 8 oracle oinstall 4096 Jun 5 15:21 oracle
drwsr-sr-x 8 oracle oinstall 4096 Jun 5 15:21 oracle
Now I want to switch it back to ... (2 Replies)
Discussion started by: sumang24
2 Replies
LEARN ABOUT DEBIAN
nischmod
nischmod(1) User Commands nischmod(1)
NAME
nischmod - change access rights on a NIS+ object
SYNOPSIS
nischmod [-AfLP] mode name...
DESCRIPTION
nischmod changes the access rights (mode) of the NIS+ objects or entries specified by name to mode. Entries are specified using indexed
names (see nismatch(1)). Only principals with modify access to an object may change its mode.
mode has the following form:
rights [, rights]...
rights has the form:
[ who ] op permission [ op permission ]...
who is a combination of:
n Nobody's permissions.
o Owner's permissions.
g Group's permissions.
w World's permissions.
a All, or owg.
If who is omitted, the default is a.
op is one of:
+ To grant the permission.
- To revoke the permission.
= To set the permissions explicitly.
permission is any combination of:
r Read.
m Modify.
c Create.
d Destroy.
Unlike the system chmod(1) command, this command does not accept an octal notation.
OPTIONS
The following options are supported:
-A Modify all entries in all tables in the concatenation path that match the search criteria specified in name. This option implies
the -P switch.
-f Force the operation and fail silently if it does not succeed.
-L Follow links and change the permission of the linked object or entries rather than the permission of the link itself.
-P Follow the concatenation path within a named table. This option is only applicable when either name is an indexed name or the -L
switch is also specified and the named object is a link pointing to an entry.
EXAMPLES
Example 1: Using the nischmod Command
This example gives everyone read access to an object. (that is, access for owner, group, and all).
example% nischmod a+r object
This example denies create and modify privileges to group and unauthenticated clients (nobody).
example% nischmod gn-cm object
In this example, a complex set of permissions are set for an object.
example% nischmod o=rmcd,g=rm,w=rc,n=r object
This example sets the permissions of an entry in the password table so that the group owner can modify them.
example% nischmod g+m '[uid=55],passwd.org_dir'
The next example changes the permissions of a linked object.
example% nischmod -L w+mr linkname
ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ name is not fully qualified, each directory specified will be
searched until the object is found (see nisdefaults(1)).
EXIT STATUS
The following exit values are returned:
0 Successful operation.
1 Operation failed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWnisu |
+-----------------------------+-----------------------------+
SEE ALSO
chmod(1), nis+(1), nischgrp(1), nischown(1), nisdefaults(1), nismatch(1), nis_objects(3NSL), attributes(5)
NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are
available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html.
SunOS 5.10 10 Dec 2001 nischmod(1)