Questions tagged [restricted-access]

This tag discusses protection of data using system configuration or file-based permissions.

Filter by
Sorted by
Tagged with
2 votes
1 answer
2k views

Webcam is not working or accessible on Ubuntu 22.04 when using an SSH or Remote Desktop Connection from another machine

In this Scenario I connect from an Windows 11 to a Ubuntu 22.04 via local network to run some python scripts, one of these scripts needs webcam access. Webcams works fine when connected and used ...
Bo Kristensen's user avatar
0 votes
0 answers
43 views

Disable touchscreen fingerswipes on ubuntu 22.04.2 LTS

I want to disable the possibility for the user that he can't use for example the 3-fingerswipe for changing workspaces. I want him to stay being locked in one program and can't access the OS. I ...
M.Dejna's user avatar
0 votes
1 answer
422 views

Give a snap access to a specific folder in home directory, but not to the full home directory

I would like to allow a snap to access / read / write to a given folder $HOME/some_folder/*, without giving it access to my full $HOME/* (since access to $HOME/some_folder is enough for this snap to ...
Zorglub29's user avatar
  • 479
0 votes
1 answer
192 views

Restricting folder interaction of a user with root privileges

Often times when creating an Ubuntu Linux image, rather than giving an administrator root access, a new user is created with root privileges. Let's call this new user "root_2". # adduser ...
JustBeingHelpful's user avatar
0 votes
1 answer
440 views

Allow restricted bash users to run specific python script

I need to allow a particular user to run a specific python script. This user has access to a restricted bash which for now allows only the clear command. Usually, the script would be run through ...
GregoirePelegrin's user avatar
0 votes
0 answers
360 views

How to get Linux live kit to work?

Does anyone know how to get Linux live kit to work on Ubuntu 20.04? I found a website that showed me how, but when I tried to build it, the file would not show up. I tried rebooting but it did nothing....
user avatar
1 vote
0 answers
17 views

Common Access Card Instead of UN and PW

Is there a feature in Ubuntu that can allow users to gain access via a common access card instead of a username and password? Or maybe only allowing access to sensitive files by use of a valid access ...
tdelozie's user avatar
4 votes
1 answer
1k views

Prevent specific users from turning off network connections

There is a customised Ubuntu 22.04 system with 4 users: user_a, user_b, user_c, user_d I want to prevent 2 users (user_c, user_d) from changing Ubuntu settings. I've already locked down the terminal ...
Muhammad Vorajee's user avatar
1 vote
1 answer
6k views

Ubuntu 22.04 XRDP Allow multiple sessions and restrict some users

I have installed xrdp on Ubuntu 22.04 Server where I also installed ubuntu-desktop for development and testing. When one user is logged in through remote desktop, others cannot login. How to allow ...
Raja Ayaz's user avatar
  • 161
0 votes
0 answers
188 views

Creating a Restricted User Account

I'm currently trying to build an ubuntu 20.04 image where the user account is pretty locked down. I dont want the user to be able to change any settings or use terminal or anything else. They are only ...
paulm's user avatar
  • 41
0 votes
0 answers
15 views

Snap applications can't open file dialog in Ubuntu 22.04.1 LTS [duplicate]

I am using Ubuntu 22.04.1 LTS. Recently, when I try to open files from any application such as inkscape or firefox, it appears the application is unable to access the file dialog. For example, when I ...
prkmanu's user avatar
  • 103
0 votes
1 answer
155 views

Preventing a specific application from accessing a folder, in user space

I have an app which recursively scans through huge directories, which is even slower because those are on NFS. It seems that I cannot configure the app in a way to stop this. However, I still want to ...
Albert's user avatar
  • 2,547
1 vote
1 answer
658 views

Accessing Jupyter from a user other than root user

When I'm logged in as root user to a remote Linux server I'm able to run the command: jupyter-notebook --no-browser --port=8909 --allow-root When I run which jupyter I get: /usr/local/anaconda3/bin/...
nidooooz's user avatar
1 vote
0 answers
412 views

Access denied when trying to install Linux Docker container

Following this tutorial: https://ubuntu.com/tutorials/windows-ubuntu-hyperv-containers#1-overview In step 6 I try to run: .\dockerd.exe -D --data-root C:\lcow Then I get: failed to load listeners: ...
Lisannevnx's user avatar
3 votes
3 answers
6k views

Firefox - VideoDownloader App + Companion application not working (Ubuntu 21.10)

To install the browser firefox on my system I used sudo snap install firefox. Afterwards, I installed the extension VideoDownloader, which was working fine. But by using this extension the first time ...
Jens Fischer's user avatar
0 votes
1 answer
68 views

Is it possible to add this file to my desktop? [duplicate]

I got Ubuntu 20.04.3 recently and I cant add this file to my desktop. I don't know where to start but this is my only discord.desktop on my computer and I need instructions to remove the: arrow, lock, ...
Solus Lupus's user avatar
-1 votes
1 answer
37 views

How can i regain access to change permissions on my files on ubuntu

chmod -rwx balfyp chmod: changing permissions of 'balfyp': Operation not permitted i changed the mount options on my wsl to fmask=111 suddenly i have zero access to my entire files on my /mnt/c ...
Abayomi Usman's user avatar
2 votes
0 answers
183 views

Why can't my Snap-installed apps access external drives?

I've recently set up a new server using Ubuntu 20.04 LTS. When I try to access images on an external drive using the snap-installed Gimp I get errors that the files don't exist (even if I run Gimp ...
Garry Hodgson's user avatar
0 votes
0 answers
771 views

Access removable media with snaps

My second SSD is mounted at "/home/maxime/Data/" to facilitate remote access. Also, since there is not a lot a space in my system SSD, I moved the /tmp folder to "/home/maxime/Data/.tmp&...
Maxime Laroche's user avatar
1 vote
0 answers
4k views

pulseaudio Denied access to client with invalid authentication data

keep getting repeating pulseaudio message in syslog! Mar 2 18:43:14 itc2 pulseaudio.pulseaudio[27388]: W: [pulseaudio] protocol-native.c: Denied access to client with invalid authentication data. Mar ...
fatdragon's user avatar
0 votes
2 answers
191 views

Permit an application to access other drives

What would be the command to allow a specific application to view other drives, like Clementine ? I can't add content to my library from other drives. Ubuntu 20.10 groovy (x86-64) With Cinnamon 4.6.7 ...
user avatar
0 votes
1 answer
158 views

CHMOD and how the permissions thing works? [closed]

So I got few questions about CHMOD and permissions in general. I know there are 3 groups: user(the creator of the file, the admin user (?) ) groups others My questions are: Can I create more than 1 ...
NoobCoder's user avatar
  • 103
1 vote
1 answer
364 views

Chroot SFTP user in Ubuntu

Good morning, I have a basic Ubuntu EC2 webserver with Apache, and several different websites on it. I log in to it via SSH with the access key provided by AWS to do basic stuff (I am a developer, not ...
Zorinik's user avatar
  • 11
1 vote
1 answer
104 views

Locking certain applications

In my family, I'm the computer guy (17yo btw). My brother got a laptop for christmas, and now, not even a month later, he managed to already mess it up (will freeze after a few mins of use and ...
Vincent Guttmann's user avatar
0 votes
1 answer
3k views

Could not scan some of the folders contained in “/” (Permission denied)

Info I just installed Ubuntu 20.04 and created different partitions since I am using 2 different disks (1 SSD and 1 HDD). When I first booted Ubuntu there were no issues, update as normal when ...
Alessandro Candeloro's user avatar
5 votes
4 answers
5k views

How to get the snap-based chromium to access a separately mounted filesystem?

I recently upgraded to Ubuntu 20.04 from the 18.04 version. Since then, the snap-based chromium browser that comes with 20.04 is unable to access any items in the /opt partition which I have ...
HippoMan's user avatar
  • 455
0 votes
2 answers
79 views

Iptables url filltering

i have a web app and i want to filter the access like this: block incoming connection to http://my-ip:8080/ access incoming/outgoing to http://my-ip:8080/the-rest-of-the-address actually i want to ...
Saeed Farjadian's user avatar
0 votes
0 answers
672 views

Point an SFTP user to its working directory without listing other user's directory

I am working on configuring an SFTP server on Ubuntu Server 18.04. I want to create SFTP accounts that point directly to their working directories without listing others. For example if the real ...
fadwa dhifi's user avatar
3 votes
1 answer
378 views

How to make snaps see the real /tmp?

I'm again and again getting annoyed by the fact that snaps don't see the "real" /tmp. One example why this is bad is that I'm unable to use "Open with -> Xournalpp" with PDFs from email attachments ...
Jasper's user avatar
  • 191
1 vote
0 answers
266 views

How to do SFTP access for only one folder/user?

I'm using ubuntu 18. I currently have a folder located in: /home/CS/scriptfiles/Maps/ And I want to create a new SFTP user, on port 22, which could ONLY browse the location: /home/CS/scriptfiles/...
Joseph Seed's user avatar
9 votes
1 answer
13k views

How can Snap permissions be viewed and modified?

One of the promoted advantages of Snap packages is the sandboxing-feature, where a Snap program may not be able to access as much system information as a package from the repository. Now, I have ...
Prototype700's user avatar
3 votes
4 answers
14k views

Unable to access external hard drive - "Not authorized to perform operation" - Ubuntu 18.04

Recently I connected my external HDD on my Ubuntu 18.04, but it is showing the error Unable to Access drive-Not authorized to perform operation. However, my HDD is working fine on windows. How can ...
10may's user avatar
  • 133
1 vote
1 answer
3k views

Kiosk mode Ubuntu

We have a few Windows 10 kiosk computers in the hallway. I want to replace them with an Ubuntu image. A few things I've managed so far: Users can log in automatically. The browser starts at login. ...
Wouter Marchal's user avatar
34 votes
2 answers
11k views

Is there any way to stop a user from creating executables and running them?

Ransomware attacks could use zero-day exploits, but often an attacker will just fool a gullible user into running an executable by downloading and clicking. Suppose we have a naive user and want to ...
Dov's user avatar
  • 811
1 vote
1 answer
849 views

Failed to build byobu from source (no root permissions)

I don't have root access. Have tried with autoreconf -ivf but nothing works Steps I am trying to follow: wget https://launchpad.net/byobu/trunk/5.17/+download/byobu_5.17.orig.tar.gz tar -zxvf ...
blues's user avatar
  • 11
4 votes
2 answers
23k views

How to grant non-root user access only to /var/log directory

I have newly created non-root(normal) user and want to grant access only to /var/log directory so that the user can view and monitor the logs. The user should not be able to cd/ls or access the /etc ...
most2's user avatar
  • 41
0 votes
1 answer
3k views

Lock user to single directory

I don't want to lock ssh users, I want to lock users in general. If a process is running as a user e.g. su -c "ls" user1 I want user1 to only ever see the folder /path/to/folder and it's subfolders/...
tsujp's user avatar
  • 151
0 votes
1 answer
413 views

Accessing my Windows system folder from Ubuntu 18.04

I've been banging my head against the wall for the last 2 days. Ubuntu won't let me even read-only my Windows system folder. Secure boot is disabled, efi dual boot works, fastboot is disabled in both ...
Tud's user avatar
  • 1
1 vote
2 answers
6k views

How do I remove the requirement of being root for modifying a certain directory? [duplicate]

If I execute ls -al, i get: drwxr-xr-x 14 root root 4096 Jan 16 02:15 <dir-name> But I want: drwxr-xr-x 14 <user> <user> 4096 Jan 16 02:15 <dir-name>
Lavair's user avatar
  • 123
0 votes
0 answers
228 views

Best practice with user permission?

When adding new users to my server, I want them to have their own /home/ dir, and also /home/user/www/ which is linked from their own apache html folder. No other user should be able to view those ...
inf's user avatar
  • 1
0 votes
1 answer
60 views

unable to mount any drive that working fine on windows [duplicate]

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount. When I try to enter my Windows partition through Nautilus I ...
Navas Valapra's user avatar
-1 votes
1 answer
70 views

Disallow command usage for a specific user [duplicate]

I recently bought a VPS with Ubuntu 18.04 (Server) on it, and ever since I've started using it I've been spammed by one of my friends regarding that he wants an account. I wanna take some revenge on ...
iHack's user avatar
  • 1
0 votes
1 answer
2k views

How can I give a new user to access file/folders in an existing user

Currently I already have a user deploy which has a script to run the deployment. I would like to create another user for example developers, to have an access on deploy's script file. How can I ...
AllenC's user avatar
  • 103
0 votes
1 answer
114 views

I’ve been hacked and Ubuntu has been loaded to a FTP server. Lost admin privileges. [closed]

I am having a very difficult time. I had Windows 10 on a laptop. Somehow I downloaded a virus. Since then I believe a hacker gained access to my computer through Ip4 and Ip6 or the Pinter Port LP2. My ...
Stephanie Vaught's user avatar
1 vote
1 answer
349 views

SSH : User can only access a particular folder in webroot [duplicate]

I would like to create a user which can only access and administer a particular folder via SSH situated in webroot of the server. Been through many blogs..none of them helped. I am using ubuntu server ...
john deo's user avatar
8 votes
2 answers
24k views

How to restrict ssh and ftp to certain ip address?

What is the easiest way to make it so that the only way anyone could access the ssh or ftp for my ubuntu machine is to be on a certain ip address?
kevCAI's user avatar
  • 83
2 votes
1 answer
780 views

Restrict access to USB ports by type in Ubuntu

How to limit access to any USB port by device type? For e.g. if I need to insert just my own mouse but no others? Is it possible to get somehow the usb device type (mouse,keyboard,drive) and it's id (...
mr.incredible's user avatar
2 votes
0 answers
2k views

Allow user to execute jar file, but not to copy(read) it

I have interesting problem which I am not sure there is a solution for. I need to allow a specific user to execute a Java program(jar), but not to copy(read) it. The problem is that if I give only ...
CuriousGuy's user avatar
0 votes
0 answers
258 views

How to limit access to usb port on PC?

I want to know if it's possible to configure usb port so that it allows you to read only files with a certain extension from the inserted usb flash drive? I want to exclude any action except reading a ...
mr.incredible's user avatar
0 votes
1 answer
79 views

How do I make Ubuntu 14.04 unreachable from physical Ethernet ports? [duplicate]

Suppose that I have files that I'm afraid to even expose to a system that is connected to the Internet. Therefore, I've put them on a separate computer, which does not have Wi-Fi or any other sort of ...
John Hamilton's user avatar