Restrict user access on linux [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 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

Related

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.

If there a way to make vsftpd allow one user to access root directory, while other users get redirected to their home directory? [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'm running Raspbian Lite on a Raspberry Pi 2. I'm trying to have vsftpd set up with one user called admin to have root access for FTP, while all other users (such as filetransfer) get redirected to their home directory. Any help would be greatly appreciated :)
I gather you're using vsftpd's chroot_local_user setting to keep users within their home directories. If that's enabled, you can use the chroot_list_file setting to pass a file containing the users you don't want to be locked in their home directories.
You can find out more on the vsftpd manual page.

How can I check what servers I can ssh into? [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 7 years ago.
Improve this question
I've inherited a Linux server that had some ssh privileges setup on it to connect to other Linux servers. The thing is there is no documentation on where those privileges are stored and they are not setup consistently across all machines.
Is there a way to check what accounts and servers I can log into without a password on an existing machine?
As #lurker says, the permissions are maintained on the server. You need look through the /etc/ssh/ssh_known_hosts and ~/.ssh/known_hosts files on all your servers to find out which hosts can connect.

Grant access rights to one specific directory [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 7 years ago.
Improve this question
Since I am not that experienced with Linux this might be an easy, if not too simple question for you. Recently I met an old friend of mine and I want to exchange some files with him. In fact I could send the files by E-Mail or share them by Dropbox or something like that but I want to make use of Linux and my RaspberryPi.
Here, the RaspberryPi can be accessed via SSH and I want my friend to be able to access one specific directory. The one where I place the files.
I don't want him to mess around in the system. Ideally he should be able to only see this one directory.
Is it enough if I create a user and put the files in his home directory?
Thanks in advance
See this introduction to permission management on Linux.
To answer your Question:
Is it enough if I create a user and put the files in his home directory?
Yes, but it's not a perfect solution because the home folder of an user contains some subfolders.

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