Re: How to restrict the files while uploading..



anu wrote:

How to restrict the files while uploading..

Depends on what you mean with restrict, how your system look like and so on...

An easy way is use chmod() and chown() on the file you saved.

--

//Aho
.



Relevant Pages

  • coreutils-5.94 released [stable]
    ... [basename cat chgrp chmod chown chroot cksum comm cp csplit cut date dd ... If that command fails because you don't have the required public key, ...
    (gnu.announce)
  • Re: [Full-Disclosure] Partial Solution to SUID Problems
    ... > that to chown or chmod the pty they just allocated. ... world-writable ttyXX. ... appropriately when you open ptyXX (which can be done only once, ...
    (Full-Disclosure)
  • root cannot chmod or chown a directory
    ... Am trying to chmod or chown a directory but am getting a chown: RPA: Not ... I'm supposed to be a superuser and I can't do this simple thing as root. ...
    (SunManagers)
  • Re: Security related questions
    ... could anyone explain some examples of setting up a restricted group for ... using chmod and chown.. ... Possable set up a special group for him. ...
    (freebsd-stable)
  • chmod, chown and user, group
    ... When chmod, chown sys calls fail the set an errno, how can I retrieve ... How can I retrieve uid, gid of the current user via sys call? ...
    (comp.os.linux.development.apps)