command to execute

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

command to execute

Alfredo De Luca
Hi all.
I need to run a simple script ... basically a chmod... when each sftp user log in into  a sftp server.  
I tried /etc/profile.d/ etc etc but nothing is working. 

Running ubuntu 16.04. 

Cheers


--
Alfredo


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: command to execute

Alfredo De Luca
Hi all...any clue on this? 

cheers


On Mon, Jun 11, 2018 at 10:44 PM Alfredo De Luca <[hidden email]> wrote:
Hi all.
I need to run a simple script ... basically a chmod... when each sftp user log in into  a sftp server.  
I tried /etc/profile.d/ etc etc but nothing is working. 

Running ubuntu 16.04. 

Cheers


--
Alfredo



--
Alfredo


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: command to execute

Ken D'Ambrosio

On 2018-06-12 04:16, Alfredo De Luca wrote:

Hi all...any clue on this? 
 
cheers
 

On Mon, Jun 11, 2018 at 10:44 PM Alfredo De Luca <[hidden email]> wrote:
Hi all.
I need to run a simple script ... basically a chmod... when each sftp user log in into  a sftp server.  
I tried /etc/profile.d/ etc etc but nothing is working. 
 
 
Unfortunately, I don't have time to dig in right now, but what you're looking to do MIGHT be possible with the ~/.ssh/config file by way of the LocalCommand directive (see the ssh_config manpage for more).  Be sure to take note of the fact that this needs to be enabled server-side by the PermitLocalCommand directive.  I know that this would work for SSH; I'm unsure about SCP, but it's as close to an (easy/elegant) solution as I can think.
 
-Ken
 
 
 
Running ubuntu 16.04. 
 
Cheers
 
 
--
Alfredo
 

 
--
Alfredo
 

 



--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: command to execute

Oliver Grawert
In reply to this post by Alfredo De Luca
hi,
Am Dienstag, den 12.06.2018, 10:16 +0200 schrieb Alfredo De Luca:
> Hi all...any clue on this? 
>
how about:

http://manpages.ubuntu.com/manpages/xenial/man7/pam-script.7.html

ciao
        oli
--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: command to execute

Ken D'Ambrosio
HOLY CROW.  I had no idea such a thing even existed -- that's awesome!
Thanks kindly!

-Ken

On 2018-06-12 10:24, Oliver Grawert wrote:

> how about:
>
> http://manpages.ubuntu.com/manpages/xenial/man7/pam-script.7.html
>
> ciao
> oli

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: command to execute

Alfredo De Luca
Thanks guys. I evaluated the pam stuff.... ( also there is http://www.linux-pam.org/Linux-PAM-html/sag-pam_exec.html) but for us doesn\t work..
I ll figure out something else. 


Cheers guys and thanks again


On Tue, Jun 12, 2018 at 5:03 PM Ken D'Ambrosio <[hidden email]> wrote:
HOLY CROW.  I had no idea such a thing even existed -- that's awesome!
Thanks kindly!

-Ken

On 2018-06-12 10:24, Oliver Grawert wrote:

> how about:
>
> http://manpages.ubuntu.com/manpages/xenial/man7/pam-script.7.html
>
> ciao
>       oli

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


--
Alfredo


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users