reparing user list on a linux system using cfengine [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I need to create a cfengine policy which automatically maintains a user list on a linux box. If there are additional users on the system except the list, it would delete them. I am a newbie to cfengine. Any pointers would be immensely appreciated. Also let me know if i am trying to solve the problem in a wrong way.

You can use the new users: promise type in CFEngine 3.6.0 to manage local user accounts.
You can use the getusers() function to get a list of all the users on the system, and then iterate through it to determine which users need to be added or deleted.
Hope this helps you get started.

Related

Creating hidden OS with linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I know that truecrypt isn't capable of creating a hidden OS but in another post someone describes the steps to do it manually and that he does it to all of his linux computers all of the time. Can anyone elaborate on his steps so that someone (like myself) who is not as experienced could accomplish this?
I would just ask this individual to provide more details but it appears as though their account is "anonymous" or something.
I developed something like you are describing.
Here https://github.com/antonio-petricca/buddy-linux you can find all the information and installation script.
Buddy linux allows you to install linux on (hidden) loop files (like for the link you provided), but providing GRUB loader by an external USB drive. So, removing, it will results in a Windows boot.
The other good stuff is that it is based on LVM, so you can extended file system "simply" by adding loop files as per your needs.
Regards.

ALL MY PICTURES DELETED UPON SWITCHING FROM WINDOWS TO UBUNTU [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
All my pictures and important info got deleted, alon with my exodus wallet recovery phrase and everything!! Is there a way i could get those data back??
If you didn't explicitly wipe out the drives, you can still get your stuff. The OS just lost track of where everything is.
If you load a Windows image to a stick and boot from it, you will probably find your files.
Althoght they wont be inside the Documents folder or whatever default folders windows comes with. You will have to get into your drive and search for the folder. The path will probably under users or something.

Restrict user access on linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have a Ubuntu 12.04 machine that I can only access using SSH. On this machine I have two users and I want to limit the access to certain files to one of these users.
Basically I want that user to be able to access only its home directory and nothing more. I know that by removing the rx permissions to other home directories for others is one option but I wanted to know if there is another way, a configuration file where I can tell that my user can only have access to that folder.
Thanks.
chrooted jail is the answer.
Like: https://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny

How can i can find the most frequently applications used by a user in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is there any way that i can find the most frequently applications used by a user in Linux? In Windows you can read this information from registry.
Make sure that accounting is turned on:
chkconfig psacct on && /etc/init.d/psacct start
...and then get summary info with sa. Look at examples here or here.
My own experience is that the most frequent command in the account is a shell.

How can i jail a user in linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
That's is the question.. how can i jail a user in a certain folder so that he can create files like images but can no go up using the command cd .. or see other folders outside?
Thanks.
Read about chroot http://linux.die.net/man/1/chroot
You can even create a minimal environment for the user
Alternatively just use file permissions so that the user is only able to see what the user should be able to.

Resources