Monday, October 24, 2016

Re: [LINUX_Newbies] Problem to directory sftp directory

 

Good Morning Cameron,

I can´t pass username of sftp because is a confidential information , but i
erase this information, I can to create folders in directory mapped but i
can´t to create a file with extension txt for example also can´t to move a
file with these extensions, i don´t know if can be permission problem,
because i got create a folder in mapped directory.

[image: Imagem inline 1]

Thank you so mush

Best regards,

David William

2016-10-24 22:01 GMT-02:00 Cameron Simpson cs@zip.com.au [LINUX_Newbies] <
LINUX_Newbies@yahoogroups.com>:

>
>
> On 24Oct2016 04:33, DAVID Bandeira <davidcmdsbandeira@gmail.com> wrote:
> >My problem is in a directory monted how a sftpd directory , I needed to
> map
> >a sftpd how a directory in linux to move files to these directory and get
> >files too, i saw the permission of directory is 700, I created a user with
> >uid 300 and i did a test , but it occorrued the same error, I don t know
> if
> >when i mounted directory its necessary to change a parameter.
> >
> >[image: Imagem inline 1]
> >[image: Imagem inline 2]
>
> This is a text only list. Images get discarded by the server. Can you
> cut/paste
> the text?
>
> Have you looked at Scott's link to some sftp setup information?
>
> Have you repeated your tests on _both_ the client and the server? You said
> your
> mount setup was:
>
> client% sshfs -o allow_other username@server:/directory /mountpoint
>
> It is very important to test this on the server as directly as possible.
> Only
> if things work on the server but fail on the client should you worry about
> the
> client side of your setup.
>
> Note that _on the server_, whatever actions the client is attempting is
> running
> on the server as user "username". So log into the server as "username",
> and do
> things there:
>
> client% ssh username@server
> ......
> server% id
> uid=501(username) gid=510(something) groups=510(something),..
> server% cd /directory
> server% ls -la
> server% mkdir blah
> server% touch blah2
>
> Can you show us (as _text_, not as screenshot images), what the output of
> these
> this is? By doing things as the "username@server" user _directly_ on the
> server
> you will get much more direct information about what is causing you
> trouble.
>
> The output of "id" will tell you about the user and group identities in
> use by
> "username", and the output of "ls -la" will tell you about the ownerships
> and
> permissions of /directory and the things in it.
>
> The error messages (if any) from mkdir and touch will tell you about what
> things are permitted or forbidden as "username" in /directory.
>
> Please try the stuff above, and whatever other things occur to you as a
> result,
> and let us know the outcomes.
>
> Cheers,
> Cameron Simpson <cs@zip.com.au>
>
>
> >Thank you very mush
> >
> >Best regards,
> >David William
> >
> >
> >2016-10-24 2:15 GMT-02:00 cs@zip.com.au [LINUX_Newbies] <
> >LINUX_Newbies@yahoogroups.com>:
> >
> >>
> >>
> >> On 23Oct2016 20:37, DAVID Bandeira <davidcmdsbandeira@gmail.com> wrote:
> >> >This week i take a job having the need to map um sftp as a directory
> in a
> >> >linux server, I did a sshfs -o allow_other username@server:/directory
> >> >/mountpoint but when i need to move/copy in server to share appear
> error:
> >> >('cannot create regular file 'directory/file.txt':No such file or
> >> >directory) but if I create one folder in shared directory or if a move
> a
> >> >file of shared folder to server its ok, someone know what can i do?
> >>
> >> It sounds like the "/directory" on "server" lacks execute (== "search"
> for
> >> directories) permission, for the user "username". Maybe. For example:
> >>
> >> server% ls -ld /directory
> >> drw-rw-r-- 288 cameron cameron 9792 24 Oct 12:11 /directory
> >>
> >> Directories need "x" permission for someone to create or otheriwse
> access
> >> items
> >> in them; "x" means "search". With just "r" you can see the list of names
> >> of
> >> things in the directory, but not access them.
> >>
> >> This may not be precisely what is happening for you. Can you be a bit
> more
> >> explicit about what actions work and what actions do not?
> >>
> >> Also, what are the ownerships and permissions on "/directory"? Feel free
> >> to
> >> obfuscate the actual user and group names as you're already doing.
> >>
> >> Cheers,
> >> Cameron Simpson <cs@zip.com.au>
> >>
> >>
> >
> >
> >
> >--
> >Atenciosamente
> >
> >David William Freitas Ferreira Bandeira
> >
> >
> >[Non-text portions of this message have been removed]
> >
> >
> >
> >------------------------------------
> >Posted by: DAVID Bandeira <davidcmdsbandeira@gmail.com>
> >------------------------------------
> >
> >To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@
> yahoogroups.com & you will be removed.
> >------------------------------------
> >
> >Yahoo Groups Links
> >
> >
> >
>
>
>

--
Atenciosamente

David William Freitas Ferreira Bandeira

[Non-text portions of this message have been removed]

__._,_.___

Posted by: DAVID Bandeira <davidcmdsbandeira@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

No comments:

Post a Comment