From: Simon Valiquette <v.simon@ieee.org>
To: linux-newbie@vger.kernel.org
Subject: Re: 2 questions: 1. ssh permissions to 777 and 2. recursively change all directories/files to 777
Date: Thu, 09 Dec 2004 17:35:08 -0500 [thread overview]
Message-ID: <41B8D31C.3040305@ieee.org> (raw)
In-Reply-To: <5.1.0.14.1.20041209133634.0208a928@celine>
Ray Olszewski a écrit :
>
> So you want an uploaded file to be mode 777, writable (and executable,
> if you really mean 777, not 666) by any user on the system? OK. Change
> the account's umask, in ./.profile, or ./.bashrc, or whatever
> user-specific file is appropriate to your setup.
I would also had done something likes that. Then, if you want those
users to be _forced_ to put all their files world readable, I don't know
how to do it. The closest I know is with a cron that change back the
permissions with chmod every 5 minutes or a script runned at logout time
(maybe scp also execute .logout).
>
> Since the relevant command is "chmod", not "Chmod" (case counts in
> Linux/Unix commands), I'm surprised you hit *anything* with the command
> as written.
It surelly really was chmod. Typo, or Outlook that automatically
fixed the case (I remember seeing things likes that many years ago when
I was still using Windows).
> chmod -R 777 ./*
>
> (Even this will not chmod **all** files, because because by convention
> almost all Linux/Unix commands treat files that begin with a dot
> character as special, so standard wildcards (*) will not match them. So
> this command will chmod files with names like filename and filename.txt,
> but not one with names like .filename . I don't know a general way to
> include such files.)
>
chmod -R 777 .
Note the "." at the end. That will do it for the current directory,
and all files/directories that start from the inode represented by "."
Simon Valiquette
http://gulus.USherbrooke.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2004-12-09 22:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-13 17:29 Remote X Little, Chris
2004-04-14 12:01 ` Juan Facundo Suárez
2004-10-13 18:43 ` Setting permissions via SSH upload to 777 Eve Atley
2004-10-13 19:23 ` Ray Olszewski
2004-12-09 21:11 ` 2 questions: 1. ssh permissions to 777 and 2. recursively change all directories/files " Eve Atley
2004-12-09 21:12 ` Jeff Woods
2004-12-09 21:57 ` Ray Olszewski
2004-12-09 22:35 ` Simon Valiquette [this message]
2004-12-10 10:37 ` Jim Nelson
2004-12-10 13:53 ` J.
2004-12-10 21:05 ` Jim Nelson
2004-12-10 13:48 ` J.
2004-12-13 21:54 ` Stephen Samuel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41B8D31C.3040305@ieee.org \
--to=v.simon@ieee.org \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox