Hi,
I'm creating a tar image containing selected files held in a manifest file thus:
cat <manifest file> | xargs tar -cvpf tar.out
I need to preserve the directory as well as the file perms. When my list contains no separate directory lines, the directory is created implicitly when the... (4 Replies)
Hello.,
I am relatively new to UNIX and to this forum, (I have trolled a while...) so I have a few questions. A family member works for Network Appliance, and I get old machines from liquidation, etc. He has been pushing for me to learn UNIX for quite some time. Recently I have taken his... (1 Reply)
I'm trying to learn something new.....I have taken college courses for C and I was looking at my Cellphone and I found a Unix based program that I can use from my phone...pretty nice...but I don't even know how to use Unix at all and want to learn how....so can anyone recommend any good books or... (1 Reply)
HI,
I'm trying to create a script that a regular unix user can run from a unix menu and disable and enable a unix printer.
Any help will be very helpful.
Thanks (0 Replies)
Hello,
Ive got an HP LaserJet 2100 / parallel interface.
I had some troubles getting going due to non-working cups drivers. Updated cups and also used a .ppd.gz file from something HP provided. found the files here...
www.linuxprinting.org/show_printer.cgi?recnum=HP-LaserJet_2100
Anyways.... (1 Reply)
Stupid question, but is there an ANSI C stdlib function that will do this for me? I want to pass the function a path and determine if the current process can read/write/execute on the path. I suppose I can whip something up using fstat and then determining the current process's user/group IDs and... (6 Replies)
I've acquired a job that uses UNIX as well as Windows 7. I've picked up on things rather quickly at work, but want to learn more at home. At work they have a shell that runs in windows. Is there some place I can download UNIX to run in Windows 7 in order to practice more at home?
Any info... (4 Replies)
Hi
I can't write to fs "/share/nfs" shared by nfs server despite properly setting RW permissions.
NFS server is configured on CentOS and Solaris10 is client.
CentOS NFS Server config :
--------------------------------
Entries in /etc/exports file :
# cat /etc/exports
/inst ... (6 Replies)
Hi,
I'm trying to use find in kshell (AIX) to find all files with perms of
write for other
AND
any execute bit set.
e.g:
r--r-x-w- would qualify
and rw-rw--wx would qualify
but ---rwxr-xr-x wouldn't qualify
So far, I've been trying something like this:
find . -type f -perm... (4 Replies)
Discussion started by: alanp36
4 Replies
LEARN ABOUT V7
chmod
CHMOD(1) General Commands Manual CHMOD(1)NAME
chmod - change mode
SYNOPSIS
chmod mode file ...
DESCRIPTION
The mode of each named file is changed according to mode, which may be absolute or symbolic. An absolute mode is an octal number con-
structed from the OR of the following modes:
4000 set user ID on execution
2000 set group ID on execution
1000 sticky bit, see chmod(2)
0400 read by owner
0200 write by owner
0100 execute (search in directory) by owner
0070 read, write, execute (search) by group
0007 read, write, execute (search) by others
A symbolic mode has the form:
[who] op permission [op permission] ...
The who part is a combination of the letters u (for user's permissions), g (group) and o (other). The letter a stands for ugo. If who is
omitted, the default is a but the setting of the file creation mask (see umask(2)) is taken into account.
Op can be + to add permission to the file's mode, - to take away permission and = to assign permission absolutely (all other bits will be
reset).
Permission is any combination of the letters r (read), w (write), x (execute), s (set owner or group id) and t (save text - sticky). Let-
ters u, g or o indicate that permission is to be taken from the current mode. Omitting permission is only useful with = to take away all
permissions.
The first example denies write permission to others, the second makes a file executable:
chmod o-w file
chmod +x file
Multiple symbolic modes separated by commas may be given. Operations are performed in the order specified. The letter s is only useful
with u or g.
Only the owner of a file (or the super-user) may change its mode.
SEE ALSO ls(1), chmod(2), chown (1), stat(2), umask(2)CHMOD(1)