Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 06-23-2023, 11:33 AM   #196
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

ups, yes it works
huber70 is offline   Reply With Quote
Old 06-23-2023, 11:40 AM   #197
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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?
mariosipad is offline   Reply With Quote
Advert
Old 06-23-2023, 11:52 AM   #198
huber70
Addict
huber70 has learned how to buy an e-book online
 
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?
huber70 is offline   Reply With Quote
Old 06-23-2023, 12:53 PM   #199
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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!
mariosipad is offline   Reply With Quote
Old 06-23-2023, 01:01 PM   #200
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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.
mariosipad is offline   Reply With Quote
Advert
Old 06-23-2023, 01:14 PM   #201
huber70
Addict
huber70 has learned how to buy an e-book online
 
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
huber70 is offline   Reply With Quote
Old 06-23-2023, 01:28 PM   #202
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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?
mariosipad is offline   Reply With Quote
Old 06-23-2023, 01:40 PM   #203
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

no, looks good so far - music and/or pictures
huber70 is offline   Reply With Quote
Old 06-23-2023, 01:42 PM   #204
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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?
mariosipad is offline   Reply With Quote
Old 06-23-2023, 01:44 PM   #205
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

yes
huber70 is offline   Reply With Quote
Old 06-23-2023, 05:54 PM   #206
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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?
mariosipad is offline   Reply With Quote
Old 06-23-2023, 06:43 PM   #207
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

No, I'm waiting full of joy
huber70 is offline   Reply With Quote
Old 06-24-2023, 09:28 AM   #208
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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.
mariosipad is offline   Reply With Quote
Old 06-24-2023, 09:43 AM   #209
huber70
Addict
huber70 has learned how to buy an e-book online
 
Posts: 274
Karma: 96
Join Date: Nov 2017
Location: Germany
Device: Tolino Vision6
@mariosipad

don't worry, get happy (afterwards)
huber70 is offline   Reply With Quote
Old 06-24-2023, 01:35 PM   #210
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
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

==============================================================

==============================================================
and try it out!
mariosipad is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 08:35 AM.


MobileRead.com is a privately owned, operated and funded community.