[scponly] Help me understand why the // syntax is useful ...
Paul Hyder
paul.hyder at noaa.gov
Thu Feb 1 09:12:01 EST 2007
FYI The // syntax does a chroot to the location on the left side and
then does a cd based in the chroot to the path on the right. It doesn't
change the syntax for path specification in commands, i.e. "/" would be
the unwriteable root, "." or blank is the current directory, etc.
The // syntax is a tool to cd users into their home directory tree or
perhaps into a shared or use specific writeable directory.
Paul Hyder
Arone Silimantia wrote:
> --- Kaleb Pederson <kibab at icehouse.net> wrote:
>
>> It sounds like you have everything setup mostly
>> correct. Can you let us know
>> what you used for your configure options. Also,
>> could you post the debug
>> syslog output (see the FAQ if necessary for
>> information on how to enable it).
>>
>> One note:
>>
>> scp file user at host:/
>>
>> The above will try to copy it to the root (/)
>> directory. You probably want:
>>
>> scp file user at host:
>>
>> To go to the default location.
>
>
> Hmmm... ok, when I use a notation without the slash,
> as you suggest, I am indeed able to scp a file without
> indicating a directory. It does just go into the
> "default" location.
>
> However, I would like to _also_ omit stating a
> directory on remotely executed ssh commands, like ls
> and rm:
>
> ssh user at host ls -asl /
>
> fails ...
>
> But now I see that:
>
> ssh user at host ls -asl
>
> actually works ... so it is your contention that all
> is well, and I was just using a / when I didn't need
> one ?
>
> I guess the question now is, what is simpler and more
> intuitive - specifying :/user, or specifying nothing ?
>
>
>
> ____________________________________________________________________________________
> No need to miss a message. Get email on-the-go
> with Yahoo! Mail for Mobile. Get started.
> http://mobile.yahoo.com/mail
>
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly
More information about the scponly
mailing list