Sponsored Content
Top Forums UNIX for Dummies Questions & Answers touch -t time, using different userid Post 302391550 by dpc.ucore.info on Monday 1st of February 2010 05:54:06 PM
Old 02-01-2010
TonyFullerMalv is right. You should be able to do so. Try touching non-existing file in the same dir first. This have to work as well. I can't see any other reason for this not working other than parent dir ownership or the bad implementation of unix permission system.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

userid

I would like to know the difference between the real user-id and the effective user-id. If user-A runs a program owned by user-B then which is the real user-id and which is the effective user-id ? (1 Reply)
Discussion started by: sundaresh
1 Replies

2. Shell Programming and Scripting

how to touch a file with prev time stamp

i want to find the files which are modified in last 30 to 120 minutes i am using "find . -mmin +30 -mmin -120 " it is giving me the error find: bad option -mmin find: path-list predicate-list can somebody help me out . Thank you (5 Replies)
Discussion started by: Prat007
5 Replies

3. UNIX for Dummies Questions & Answers

Touch all files and subdirectories (recursive touch)

I have a folder with many subdirectories and i need to set the modified date to today for everything in it. Please help, thanks! I tried something i found online, find . -print0 | xargs -r0 touch but I got the error: xargs: illegal option -- r (5 Replies)
Discussion started by: glev2005
5 Replies

4. Shell Programming and Scripting

how to make a log.txt and add date and time when use ls,touch and find

Hey guy, how to make the log.txt file and record date and time when ls, touch and find command run? Thanks Boly (13 Replies)
Discussion started by: chenboly
13 Replies

5. Red Hat

userid with nothing to do on the os/app

Hi All, I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty. Can I just delete this userid? How can I investigate if userid have something to do with the application? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

6. Shell Programming and Scripting

What is the command to get name associated with userid?

Hi, 1#what is the command to get name associated with userid? 2#I am using unix on Mainframes thru OMVS. So any one know to to capture TSO command output to a variable on OMVS environment. I tried with below script, but its not working! #!/bin/ksh output=$(tso whois PA1234) echo... (6 Replies)
Discussion started by: prashant43
6 Replies

7. UNIX for Dummies Questions & Answers

userid and pw

questions: a. where can I customized the password of userid in solaris? say I wanted 10digits long, all caps? thanks (4 Replies)
Discussion started by: lhareigh890
4 Replies

8. Shell Programming and Scripting

How to change time stamp with touch command?

Hi, I wish to change time stamp of a directory with all its subdirectories and files on server. I am able to find following two ways but want to know which will be the better one. I have not tried anyone of them because I am not sure if it can effect my data: find * -type d -exec touch... (5 Replies)
Discussion started by: bioinfo
5 Replies

9. UNIX for Advanced & Expert Users

Help with touch: bad time specification

Here is the part of the script: I have modified the file name.:) SSFILE=${My_HOME_DIR}/log/my_file_ss.log export MM=`date '+%m'` export DD=`date '+%d'` export HH=`date '+%H'` export MIN=`date '+%M'` export HOURAGO=`echo ${HH} -1 |bc ` echo $HOURAGO export TTIME=${MM}${DD}${HOURAGO}00... (5 Replies)
Discussion started by: N1a_Raider
5 Replies

10. Red Hat

Touch - changing date and time

Hi, I am facing a problem with the command - TOUCH on Linux. See the example below: File on Linux: rw-rw-r-- user1 user1 Jan 01 09:00 test.txt The file - test.txt was created by the user - user1. Now, I want to change the date and time, but using other user - user2 The user2... (12 Replies)
Discussion started by: brjohnsmith
12 Replies
FS_QUOTA(1)						       AFS Command Reference						       FS_QUOTA(1)

NAME
       fs_quota - Displays the quota used in the volume containing a directory or file

SYNOPSIS
       fs quota [-path <dir/file path>+] [-help]

       fs q [-p <dir/file path>+] [-h]

DESCRIPTION
       The fs quota command displays the percent of quota consumed in the volume that contains each specified directory or file.

       To display more detailed information about the volume and the partition it resides on, use the fs examine and fs listquota commands.

       To set volume quota, use the fs setquota or fs setvol command.

CAUTIONS
       Currently, the maximum size of a volume is 2 terabytes (2^31 bytes).

OPTIONS
       -path <dir/file path>
	   Names each file or directory for which to display the quota consumed in its parent volume. Partial pathnames are interpreted relative
	   to the current working directory, which is also the default value if this argument is omitted.

       -help
	   Prints the online help for this command. All other valid options are ignored.

OUTPUT
       The output reports the percent of volume quota used, in the following format:

	  <percent>% of quota used.

EXAMPLES
       The following command lists the percent quota used of the volume housing the current working directory:

	  % fs quota
	  17% of quota used.

       The following command lists the percent quota used of both the volume housing the current working directory's parent directory and the
       volume housing the directory /afs/abc.com/usr/smith:

	  % fs quota -path .. /afs/abc.com/usr/smith
	  43% of quota used.
	  92% of quota used.

PRIVILEGE REQUIRED
       The issuer must have the "r" (read) permission on the ACL of the root directory of the volume that houses the file or directory named by
       the -path argument, and "l" (list) permission on the ACL of each directory that precedes it in the pathname.

SEE ALSO
       fs_examine(1), fs_listquota(1), fs_setquota(1), fs_setvol(1)

COPYRIGHT
       IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.

       This documentation is covered by the IBM Public License Version 1.0.  It was converted from HTML to POD by software written by Chas
       Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.

OpenAFS 							    2012-03-26							       FS_QUOTA(1)
All times are GMT -4. The time now is 01:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy