You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



restricted user with some privilegies

Author (Read 3656 times)

0 Members and 1 Guest are viewing this topic.

Re: restricted user with some privilegies
« Reply #6 on: February 14, 2018, 06:24:28 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
You are Welcome :)

Here are some ways to make/generate passwords in your terminal, if it helps -

https://www.linuxliteos.com/forums/scripting-and-bash/random-passwords-anyone/

 

Re: restricted user with some privilegies
« Reply #5 on: February 14, 2018, 10:51:55 AM »
 

Sprintrdriver

  • Forum Regular
  • ***
  • 110
    Posts
  • Reputation: 6
  • Linux Lite on Dell Lattude D620
    • View Profile

  • CPU: Intel Core2 T5500

  • MEMORY: 3Gb

  • VIDEO CARD: Intel Mobile 945GM/GMS 943/940GML Express
Thanks a lot - this is very helpful  ;D

From experience with Veracrypt - I know that if using norwegian characters (ÆØÅæøå), it won't accept password by terminal. May it be similar problems if I alter a user password using passwd command?
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux :)
 

Re: restricted user with some privilegies
« Reply #4 on: February 09, 2018, 11:08:33 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
So the question is - is it possible to add the new user to a group so that it can have access to mount and dismount?

Hello Sprintrdriver,

be logged in as your First user.


Adding username2 in to the sudoers Group


Hold down Ctrl and Alt keys and press t (Ctrl Alt +t)

Copy/paste (or type) in to your terminal the code below, replacing the word "username2", with the actual username of your second user -

Code: [Select]
sudo usermod -a -G sudo username2
press enter
type in your password when asked (password of first user)


Explanation of this command -
  • This will modify the username2 (usermod) (actual username2)
  • and add/append (-a)
  • to the group (-G)
  • named (sudo)

Checking username2 is now in the sudo group


Afterwards you can do, replacing the word "username2", with the actual username of your second user -

Code: [Select]
groups username2
to check.


Adding/Changing sudo password of username2


If it needs the password added for the sudo group of username2
Then to do, replacing the word "username2", with the actual username of your second user -

Code: [Select]
sudo passwd username2press enter
type username2 password
press enter
type username2 password again.
press enter
« Last Edit: February 09, 2018, 12:09:01 PM by bitsnpcs »
 

Re: restricted user with some privilegies
« Reply #3 on: February 09, 2018, 10:22:21 AM »
 

Sprintrdriver

  • Forum Regular
  • ***
  • 110
    Posts
  • Reputation: 6
  • Linux Lite on Dell Lattude D620
    • View Profile

  • CPU: Intel Core2 T5500

  • MEMORY: 3Gb

  • VIDEO CARD: Intel Mobile 945GM/GMS 943/940GML Express
I did use the Linux Lite User manager to create the user. I know it is awesome, but that doesn't answer the original problem.
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux :)
 

Re: restricted user with some privilegies
« Reply #2 on: February 09, 2018, 05:00:15 AM »
 

Artim

  • Always Learning
  • PayPal Supporter
  • Gold Level Poster
  • *****
  • 541
    Posts
  • Reputation: 67
  • Lieutenant Commander, Confederate Space Force
    • View Profile
    • Confessions of a Technophobe

  • CPU: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz

  • MEMORY: 3Gb

  • VIDEO CARD: Mobile GM965/GL960 Integrated Graphics Controller

  • Kernel: 5.x
We have the Lite User Manager in version 3.8.  Nice point-and-shoot interface.
Menu -->All -->Light User Manager
 

restricted user with some privilegies
« Reply #1 on: February 08, 2018, 09:03:40 PM »
 

Sprintrdriver

  • Forum Regular
  • ***
  • 110
    Posts
  • Reputation: 6
  • Linux Lite on Dell Lattude D620
    • View Profile

  • CPU: Intel Core2 T5500

  • MEMORY: 3Gb

  • VIDEO CARD: Intel Mobile 945GM/GMS 943/940GML Express
Hi.

I have some files that is very critical for me (bank accounts, passwords, etc) that I cannot effort to loose, or that get in hands of a thief if the laptop gets stolen.

So I decided to create a second user profile on the same laptop, where the home folder is encrypted and the password is a really lenghty one. So that all the most critical files is now stored in that secure users home folder.

The problem I hit now is when I tries to make backup using rsync. The backup destination is on a Veracrypt volum (supposed to). But I have run into a brick wall now.
- The user don't have permission to use Veracrypt to mount.
- If I use the other user profile (admin) to mount veracrypt, it  turnes out that the user doesn't have access to the mounted volume (mounted to a folder) - even if the user have permissions to the parent folder. Tried to set permission for the mounted folder so anyone can access+write, but to no help. The result is that rsync just returns an error because lack of permission.
- The file system into the Veracrypt volume is FAT so it shouldn't hold file permission.
- Tried to use su command to shift from admin user to new user, but the permission issue stay the same.

Temporary workaround:
Just copy all files into a partition that has no restrictions - and from there make a rsync backup using admin account. But this serves a security issue because I have les control what happens if files gets deleted and if possible to restore (for unauthorized).

So the question is - is it possible to add the new user to a group so that it can have access to mount and dismount?
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux :)
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section