You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Pereira 610d71dbae
Merge pull request #1 from SavSanta/patch-1
2 years ago
.gitignore Initial commit 3 years ago
LICENSE Initial commit 3 years ago capitalize 2 years ago
nextcloud-login First commit 3 years ago I used to ask for the password twice 3 years ago


The pam_nextcloud is a Pluggable Authenication Module (PAM) module used to verify a user against a cloud service's database. The cloud service supported be Nextcloud or Owncloud [not tested]. The idea is simple, convert any Linux distribution into a cloud OS, something similar to Chrome OS or Chromium OS, but not using any Google services.-


I started this project because I would like to use something similar to Chrome OS without Google Drive and that is fully opensource.

Getting Started

You may experience some delay duing the moments where the module is validating the username and password with the server. It is reccommended to test in virtual machine prior to usage in a personal computer.


Python 3


pam-python is a PAM module that runs the python interpreter thus allowing PAM Modules to be written in python.


pypi is a tool for install Python packages.


pyocclient a python client library for owncloud/nextcloud.


Clone the repository.

git clone
cd pam_nextcloud/

As root execute the next commands.

mkdir /lib/security
cp /lib/security/
cp nextcloud-login /etc/pam.d/


Create the conf file that holds the url server

echo "https://url" > /etc/sync_os.conf

We'll need to modify some PAM files as root. Don't worry I've got your back!. Open with any text editor the file /etc/pam.d/common-auth Add this line.

@include nextcloud-login

In the next line

auth [success=1 default=ignore] nullok_secure

Change to.

auth	[success=1 default=ignore] nullok_secure try_first_pass


David Pereira <>


GNU General Public License v3.0 - LICENSE