Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [restricted-access]

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

-1
votes
0answers
34 views

Ubuntu 16.04 fopen (…) failed with Python 3.5.2 [on hold]

I am trying to run a Python script which is accessing a file graph.xml of an application (The Open Racing Car Simulator, short TORCS) stored inside /home/username/.torcs/config. The file exists and ...
0
votes
0answers
20 views

Get terminal access on locked down system (have SU PW)?

I'm trying to get terminal access to a system that is somewhat locked down. I have an elevated username and password. I also have access to the terminal if I log in as the elevated user, but not as ...
0
votes
0answers
24 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 ...
0
votes
1answer
34 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 ...
-2
votes
1answer
40 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 ...
0
votes
0answers
29 views

Restrict a user to not leave one specific directory (only run a terminal javascript app)?

I have seen many topics regarding similar questions, but those always seem to address ftp and ssh accesses. In my case I simply want a kind of a "terminal user" who may not read contents of mounted ...
0
votes
1answer
34 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 ...
0
votes
1answer
66 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 ...
0
votes
0answers
31 views

User lockdown methods and/or Softwares

I want to know the command line methods to lock-down users, I mean user-access restriction which a root account can implement on other users in Ubuntu desktop. Say, in my Ubuntu Desktop 18.04 - I have ...
0
votes
1answer
89 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 ...
4
votes
2answers
2k 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?
3
votes
1answer
62 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 (...
2
votes
0answers
688 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 ...
0
votes
0answers
75 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 ...
0
votes
1answer
59 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 ...
0
votes
1answer
419 views

How can I allow connections only from certain hostnames (IPs may change due to dynamic DNS)?

I want to allow connections only from certain hostnames instead of by specific IP (the hostnames are defined by dynamic DNS). For example, home.no-ip.org, mobile.no-ip.org, etc. Is this possible out-...
0
votes
0answers
32 views

Disable features

I have a question here I created a new user account and I want to disable some of the features in the menu so that the user can't have access too like the settings and what not how can I do that
1
vote
0answers
64 views

Restricting users to a particular list of programs

Is there any way to restrict users on Ubuntu similar to Desklock for windows? Basically, these are computers for systems control and I need to keep them from opening anything other than the controls ...
0
votes
1answer
456 views

Access denied to Windows partition on Ubuntu 17.04 [duplicate]

I have installed Ubuntu 17.04 dual boot with Windows 10. Now I can't write data to my local disks from Ubuntu. I have only read access. Please help me to fix this problem.
3
votes
2answers
532 views

SSH message after login, then restrict the user from using account

I want to "block/restrict" one of the accounts on my dedicated server, but I want user to allow to log in, then i want the message to pop up for him (for example in putty) and then close connection (...
4
votes
1answer
1k views

Restrict user access to GPU

I wish to restrict access to using a GPU (in terms of reserving memory on it) for certain users on a jointly used workstation. So if a user tries to access the GPU on SSH, for example via CUDA, that ...
0
votes
1answer
85 views

Restricting access to hosts file/websites?

To keep myself productive, I'd like to block access to certain websites no matter how little willpower I have. One thing I've done on Windows is password-lock my modified hosts file and kept the ...
0
votes
1answer
879 views

How to give full access to my other user for all files

When another user logs in to his account, he is unable to access DISKS and other files. He is also admin, but when he tries to open any disk this message shows.
0
votes
1answer
174 views

How do I assign a specific user read/execute permissions to a susbset of folders in shell & SFTP?

Been scouring the interweb for solution to this but all answers refer to either groups, folder owners or_all_users. In my case, I have my own user ("kai") and several others who use the machine. I ...
1
vote
0answers
653 views

Make an external drive Ubuntu + Windows accessible [duplicate]

just wondering if there is a way to make an external hard drive ubuntu/linux only accessible. So if someone plugs it into windows or mac, it wouldn't show any files or even the drive or show they are ...
1
vote
0answers
210 views

unixODBC access to MDB databasefile for all users

I have configured the odbc for a MS Access MDB databasefile. The access is ok when executing sudo isql -v MyDatabaseName since it returns Connected! and I get a SQL prompt and I can select data from ...
0
votes
1answer
531 views

Restrict SSH user to one directory only

We have a VPS server with a prod and dev version of web aplication. Also there are two ssh accesses - users cst-prod and cst-dev. Problem is, some developers under me keep changing things in /home/www/...
0
votes
1answer
162 views

How to block websites for a user, who has no root rights? [duplicate]

The situation is: I don‘t want to able to surf certain websites out of distraction of boredom, while I am in the University, studying. My idea is: Create a sudo-password which is to complex to ...
3
votes
1answer
820 views

How do I prevent root access from all TTYs

I am trying to secure root access on my Ubuntu servers (running 14.04 desktop and 16.04 server). I would like to disable root access on all TTYs except TTY1. I know this can be done by editing /etc/...
3
votes
1answer
7k views

How to allow users to create and delete file(s) / folder(s), but not modify them?

I have created a group name "app-data" and a folder /db-data/archived-data/ I want members of app-data to have all rights on /db-data/ folder but I want the same group users have only create and ...
0
votes
1answer
192 views

xhost command in script fails when executed by initctl

For some reason, I have to execute xhost +SI:localuser:root to allow GUI for root user. I have put this command in a shell script, which will be executed at startup by upstart. When I execute this ...
0
votes
1answer
977 views

How to change index.html file in apache from normal user when apache is installed in root?

I work in Ubuntu 14.04. Well, I always had the misconception that installing a software from the root user makes the software available to all users. So, I wanted to install apache and add my html ...
0
votes
2answers
916 views

How to limit users that can use root command

On an Ubuntu workstation with multiple profiles, how do you limit root access to specific profiles.
0
votes
2answers
38 views

How to disallow access to folder even for admins?

I'd like to create a new user account and allow them to do maintenance on the server, i.e. install and configure new software, restart the server, manage other users etc... However, I'd like to ...
0
votes
1answer
935 views

Prevent Linux from accessing some partitions in a Dual Boot system

How can I prevent Ubuntu 15.10 from accessing some of the partitions on my dual boot (with Windows 10) to prevent possible data corruption or loss when I'm out experimenting with dangerous commands.
1
vote
0answers
18 views

Folder access restriction during specific hours

I want to manage my time better and I'm looking for way to make my entertainment folder accessible only after 8 pm. Is there any way to do it with some bash command?
1
vote
0answers
36 views

websites doesnt load & restricted from accessing?

my company as installed ubuntu 14.04 14.04 LTS ON NEW COMPUTER DEVICE NAME: CTEL-DESKTOP MEMORY 1.9 GIB PROCESSOR INTEL CELERON(R) CPUJ1900@1.99GHz *4 GRAPHICS INTEL BAY TRAIL X86/MMX/SSE2 OS TYPE 32-...
-2
votes
1answer
47 views

Ask user privilage access

I create one 'pradeep' user, that 'pradeep' user access only 'pradeep' home directory , and pradeep user cannot view remaining home directory and he go that remainng home directory its shows access ...
1
vote
1answer
249 views

Wine slow to start when blocked access to network through iptables

I've got a separate user for running untrusted applications in wine and it was relieved from accessing network at all by using # iptables -A OUTPUT -p all -m owner --uid-owner username -j DROP Now, ...
1
vote
2answers
8k views

How to edit /boot/efi

I have installed rEFInd, and it works well enough, but I am trying to add a theme. To do so, I need access to the /boot/efi/ folder. When I try to access it, I get the following error: rufio1337@...
0
votes
2answers
115 views

Pre-scheduled daily lock-out periods [duplicate]

I'm looking for an automatic way to lock out our home computer during certain pre-scheduled times of the day. Rather than rolling my own script for doing this, is there some off-the-shelf software ...
0
votes
3answers
184 views

how to restrict time used for using computer in Ubuntu

I want to restrict the access to user accounts for employees to the working hour daily. Monday to Friday (8:00-17:00) Saturday (8:00-13:00) How to do this?! Command line and GUI apps are well ...
3
votes
3answers
701 views

How to lock user to one directory

I have built a few Virtual Hosts using nginx but now I want to have some users to modify them without them being able to edit anything else outside the host directory. I have tried so many things but ...
0
votes
1answer
139 views

How to restrict write/read access to HDD for certain apps

I have an old secondary internal HDD installed in my desktop PC on which I primarily do backups. I noticed that while the drive is mounted it seems that the whole system's performance seems to drop ...
4
votes
2answers
5k views

How to create a very limited user on Ubuntu 14.04

I'm trying to make a safe workstation PC for sensitive data using Ubuntu 14.04. No user should have the right to: print, connect a USB flash drive to transfer files, send files via email or install ...
1
vote
0answers
187 views

Assigned access or guided access equivalent

Is there a way to restrict user to use only one app in ubuntu? In Windows it is assigned access feature and in iOS it is guided access feature.
2
votes
0answers
842 views

restrict access to Internet in guest session in 14.04 LTS

Ciao! I am using ubuntu 14:04 LTS and would like to restrict access to the Internet in guest session at particular times, for example, in use from 10 am to 12 pm and from 5 pm to 7 pm. For all the ...
-1
votes
1answer
2k views

Restrict user access to /proc and /sys

I have one big problem: setfacl does not seem to work for /proc and /sys, but I would like to restrict one specific users rights and I do not find it acceptable for that user to read stuff like /proc/...
1
vote
2answers
21k views

How do I set permissions on a network-shared folder?

I used system-config-samba to expose a folder on the network with no user authentication. But I got permission failures, so I used chmod 666 shared_folder. When I go to \\computername from a ...
11
votes
2answers
13k views

How to give a normal user access only to the /var/log directory?

I have a non-admin user in Ubuntu 12.04 LTS desktop 32-bit OS to whom I need to give permissions only to access /var/log as he needs to monitor logs and create reports related to it. I do not want to ...