[PLUG] Who's right.. student or system?
Jeff DeFouw
defouwj@purdue.edu
Thu, 19 Oct 2000 14:19:51 -0500 (EST)
On Thu, 19 Oct 2000, Charles Allen wrote:
> mv try_1.xls ~IMAENG/memories/try_1.xls /*Supposed to move from current
> to said directory*/
> cp ../../UNIX/hmwk2 ~IMAENG/MEMORIES/hmk2 /*Supposed to copy to user's
> MEMORIES directory*/
> The reason I had points deducted is because the ~uid reference 'does not
> work' according to my TA. I have, however, had it work before and would
> like to know if I was just under some special circumstance.
This works in bash (default on most Linux distros) and tcsh (available on
purdue unix machines), but not csh (the default on most of the purdue unix
machines) or the very plain flavor of sh.
> Another problem I had with the exam is the following:
>
> 2.I may be wrong on this one:
>
> -rwx------ part_a.xls
>
> "What UNIX command(s) are needed to make part_a.xls readable to anyone?"
>
> I wrote: chmod a+r part_a.xls
>
> but was deducted points because I was suposed to write: chmod go+x
> part_a.xls
> Does "chmod a+r part_a.xls" dissallow some users from reading the file?
a+r is fine and afaik it is standard across all flavors of unix. go+r
(assuming you meant r and not x) would be the only specifically "needed"
change but a+r certainly does the job.
--
Jeff DeFouw <defouwj@purdue.edu>