![]() |
#196 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
ups, yes it works ![]() |
![]() |
![]() |
![]() |
#197 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
And this is what you wanted? |
![]() |
![]() |
Advert | |
|
![]() |
#198 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
well, I have now (have not tried it out outside our home) access from "everywhere" to my folders on tablet/pc/smartphone what is now the access ip to a specific folder for a friend to download eg files/folder or to view pics in a specific folder? |
![]() |
![]() |
![]() |
#199 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
Ahhh! You have found the problem with running your own (s)ftp server. Also how to block root access if you use root. (only from external, but not from internal). If you only have a few users with all about the same access it can be done. But, more users and more different places on your pi they may access. It's no longer fun! |
![]() |
![]() |
![]() |
#200 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
Please read this website https://tecadmin.net/how-to-create-s...-in-debian-11/ and check it this might help you. for "sftpuser" read your user(s). so for example sftp1user, sftp2user, etc This works for the OS on the Raspberry Pi (RaspiOS). Last edited by mariosipad; 06-23-2023 at 01:04 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#201 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
well, I guess about 5-6 friends, access can be the same, but the folder/files will of course be different. It's mainly to give access to a specific (different) picture folder with its content and a specific (different) folder with mp3 content |
![]() |
![]() |
![]() |
#202 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
so they all may access (for example): /home/sftp/music and /home/sftp/pictures or user sftp1 -> /home/sftp1/music and /home/sftp1/pictures user sftp2 -> /home/sftp2/music and /home/sftp2/pictures user sftp3 -> /home/sftp3/music and /home/sftp3/pictures user sftp3 -> /home/sftp2/music and /home/sftp2/pictures or user sftp1 -> /home/sftp1/music and /home/sftp1/pictures user sftp2 -> /home/sftp1/music and /home/sftp2/pictures user sftp3 -> /home/sftp3/music and /home/sftp3/pictures user sftp3 -> /home/sftp2/music and /home/sftp3/pictures or even more complicated? |
![]() |
![]() |
![]() |
#203 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
no, looks good so far - music and/or pictures |
![]() |
![]() |
![]() |
#204 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
so only /home/sftp/music and /home/sftp/pictures for all to access? but with different users? |
![]() |
![]() |
![]() |
#205 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
yes |
![]() |
![]() |
![]() |
#206 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
I think I have something that I can call "workable". I must write down what I did to make it work in such a way that it is clear to you. It's not difficult, but communication is the most difficult thing. I like to be clearheaded before I will start it (tomorrow). I had some lock-ups testing I would like you to go without. (simply solved, but still....) OK? In the meantime any other questions? |
![]() |
![]() |
![]() |
#207 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
No, I'm waiting full of joy |
![]() |
![]() |
![]() |
#208 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
I have a problem with internet. The ISP is working on it (they say). Patience for me (and you) as posting much text from an iPhone doesn’t really work. |
![]() |
![]() |
![]() |
#209 |
Addict
![]() Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
|
@mariosipad
don't worry, get happy (afterwards) |
![]() |
![]() |
![]() |
#210 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@huber70
See if this helps you. Change usernames sftp, sftp1, sftp2 to what you want and add users if you want to. Code:
============================================================== adduser ============================================================== sudo adduser --shell /bin/false --no-create-home sftp sudo adduser --shell /bin/false --no-create-home sftp1 sudo adduser --shell /bin/false --no-create-home sftp2 sudo groupadd sftpusers sudo usermod -a -G sftpusers sftp sudo usermod -a -G sftpusers sftp1 sudo usermod -a -G sftpusers sftp2 sudo usermod -g sftpusers sftp sudo usermod -g sftpusers sftp1 sudo usermod -g sftpusers sftp2 ============================================================== Make sftp-jail ============================================================== sudo mkdir -p /home/sftp/music sudo mkdir -p /home/sftp/pictures sudo chown sftp:sftpusers -R /home/sftp/music sudo chown sftp:sftpusers -R /home/sftp/pictures ============================================================== append to /etc/ssh/sshd_config ============================================================== Protocol 2 Match Group sftpusers ForceCommand internal-sftp PasswordAuthentication yes ChrootDirectory /home/sftp PermitTunnel no AllowAgentForwarding no AllowTcpForwarding no X11Forwarding no ============================================================== restart ssh ============================================================== sudo systemctl restart ssh ============================================================== ============================================================== |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
COPS : Calibre OPDS PHP Server | vlad59 | Related Tools | 1923 | 04-22-2025 05:33 PM |
OPDS in php or populate metadata.db from filesystem | skelos | Related Tools | 0 | 09-06-2019 11:03 AM |
php??? | crutledge | ePub | 13 | 01-24-2014 06:27 PM |
Which PHP version do you have? | erayd | Workshop | 2 | 10-04-2010 08:02 PM |