The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Security
Google UNIX.COM


Security Anything involving computer security goes here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Read words from file and create new file using K-shell. bsrajirs Shell Programming and Scripting 4 06-01-2007 09:15 AM
Set quota on directories *Jess* SUN Solaris 1 05-08-2007 05:00 AM
Quota-problem chrizz HP-UX 5 10-28-2006 03:20 PM
How to set user quota KaiXiang Linux 2 09-03-2003 09:04 PM
Quota jarthda UNIX for Dummies Questions & Answers 1 05-14-2001 12:25 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-30-2007
Registered User
 

Join Date: Sep 2006
Posts: 7
create file with 20mb with quota

Hello ,

does anyone know how to create a file with 20mb with the help of quota without root and as a normal user?


thank u in advance
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-30-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,493
You are trying to get around the quota imposed on your home directory?

/tmp and /var/tmp are two of the usual places to create large files that do not need to stay around forever.
Reply With Quote
  #3 (permalink)  
Old 10-30-2007
Registered User
 

Join Date: Sep 2006
Posts: 7
well...the file has to created in the home directory ....thats the problem
Reply With Quote
  #4 (permalink)  
Old 10-30-2007
drl's Avatar
drl drl is offline
Registered User
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 497
Hi.

You could try a link from home to tmp ... cheers, drl
Reply With Quote
  #5 (permalink)  
Old 10-30-2007
Registered User
 

Join Date: Sep 2006
Posts: 7
if u could explain it in detail how it could be done would be nice..as i new to quota command.

thank u in advance
Reply With Quote
  #6 (permalink)  
Old 10-30-2007
drl's Avatar
drl drl is offline
Registered User
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 497
Hi.

Assuming that you have the file in /tmp, say with the name "q", then try each of the following while in your home directory:
Code:
ln /tmp/q q
ln -s /tmp/q q
I'd guess that the second will be more successful.

Note that code that is written to expect files to be in certain places is not very flexible.

Look over the man pages on quota and ln to make sure that we are discussing the right concept and command(s):
Code:
man ln
man quota
... cheers, drl
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0