nwflag (1)

Name

nwflag - Displays or modifies the attributes of files and directories on Novell file systems.

Syntax

nwflag {-a|-n} {-w|-e <eDir object>|<+|-> <attr modifier>} [-s] [-d|-f] [--] [-v] [-h] <URI1> {URI2} {URI3} ...

Description

The nwflag utility allows you to display and modify the attributes of files or directories.

Type

Displays or sets either the attributes or the owner flag information.

-a, --attributes

Displays or sets attribute flags.

-n, --owner

Displays or sets owner flags.

Options

-s

Traverse subdirectories.

-d, --directories

Displays or modifies directories only.

-f, --files

Displays or modifies files only.

--, --ignore_rest

Ignores the rest of the labeled arguments following this flag.

-n, --owner

Sets the file owner.

-v, --view_owner

Displays files that a user owns.

-h, --help

Displays the help strings.

Attributes

For additional information on file system attributes, see the File Systems Management Guide for OES at http://www.novell.com/documentation/oes/stor_filesys/data/hn0r5fzo.html.

In this guide, the “Understanding File System Access Control for NSS and NetWare Traditional File Systems” section provides information on flags. See http://www.novell.com/documentation/oes/stor_filesys/data/bs3fih1.html.

o=Read-only

w=Read-write

c=Compressed

h=Hidden

y=System

k=Can't Compress

p=Purge

a=Archive Needed

m=Migrated

d=Delete Inhibit

r=Rename Inhibit

s=Shareable

t=Transactional

i=Copy Inhibit

x=Execute Only

q=Don't Migrate

e=Immediate Compress

f=Don't Compress

b=Don't Suballocate

l=All

n=Normal

Examples

nwflag -a -f -e +o //MYSERVER/SYS/PUBLIC/TES

Gives all files in the TEST directory a read-only attribute.

nwflag -a -s -d -e +d //MYSERVER/SYS/PUBLIC/TEST

Sets all child directories of the TEST directory to Delete Inhibit.

nwflag -a -e +p

Sets the current directory to Purge.

nwflag -a -s -f -e +a+e //MYSERVER/SYS //MYSERVER/USER

Sets all files on vol SYS: and USER: to Archive Needed and Immediate Compress.

nwflag -n -e -s -f adam.cont.org

Makes user ADAM the owner of the files in the current directory and subdirectories.

nwflag -n -w -s -f //MYSERVER/USER | grep -i “adam.cont.org”

Lists all files owned by user ADAM on volume USER.

Authors

Copyright 2005-2009, Novell, Inc. All rights reserved. http://www.novell.com

To report problems with this software or its documentation, visit http://bugzilla.novell.com