This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Two users

Tags: None
(comma "," separated)
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Two users  Topic is solved

Sat Feb 16, 2019 10:22 pm
Two users
How to set up a system that has two users that one user can not read the files of another user. From previous experience, as an ordinary user, I can access another user or another Linux I have. I read all the files and edited them through the Dolphin program.
Is it possible that one user has a different localization than another user?
NoNameNoBlame
Karma
0

Re: Two users

Sat Feb 16, 2019 11:41 pm
Protect HOME-dir against co-users:

1. Login
2. Start dolphin
3. Click on BreadCrumb-Widget: Select home
4. RightClick Your own dir: <userAccountName>
5. Select Properties
6. Select Permissions TabWidget
7. Group: NoAccess + Others: NoAccess
8. Click OK

Everyone/-thing can do this with his/her/its own ${HOME} directory.
root-account can do it for others.

Install Midnight-Commander (mc).
Makes AdminLife easier.
NoNameNoBlame
Karma
0

Re: Two users

Sun Feb 17, 2019 12:06 am
Languages: Example French

$ apt search '\-fr$|\-fr\-'

Examine list.
Install, what You need.
NoNameNoBlame
Karma
0

Re: Two users

Sun Feb 17, 2019 12:41 am
The most basic localization settings:
Making additional "locales" available/usable:

$ sudo -i
# configure-debian

Then, select: ==> libs ==> locales
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Two users

Sun Feb 17, 2019 9:38 am
NoNameNoBlame wrote:Protect HOME-dir against co-users:

1. Login
2. Start dolphin
3. Click on BreadCrumb-Widget: Select home
4. RightClick Your own dir: <userAccountName>
5. Select Properties
6. Select Permissions TabWidget
7. Group: NoAccess + Others: NoAccess
8. Click OK

Everyone/-thing can do this with his/her/its own ${HOME} directory.
root-account can do it for others.

Install Midnight-Commander (mc).
Makes AdminLife easier.

There are also set permissions for me
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Two users

Sun Feb 17, 2019 9:49 am
I do not understand the other two tips, I'm localized for myself, but I do not know about the other one because the localization files are moving from the same place. It puzzles me if I use system setup for another user, it will cover the setup for the first one. I do not know the double setup to support it. My question was created by my one who is freely using my computer. So I want separate orders, plus that English is left to me and Serbian is not able to read my files or to destroy my whole system because it touches something wrong with the cat and the devil's system goes away.
NoNameNoBlame
Karma
0

Re: Two users

Sun Feb 17, 2019 10:01 am
Concerning HOME-permissions:

If You see this:

$ $(which ls) -ld ${HOME} | grep -o -E '^[^ ]+'
drwx------

then You did it, and everything within/below
Your home is protected.

Except against root, of course.
And except evil software-programmers, of course.

But against non-root co-users, this account's
files and directories are protected, now.

Edit:

Another way to check HOME-permissions:

$ getfacl ${HOME} |& grep '::'
user::rwx
group::---
other::---

2nd edit:

And yet another way:

$ stat ${HOME} | grep -o -E '^Access[^)]+)'
Access: (0700/drwx------)

Last edited by NoNameNoBlame on Sun Feb 17, 2019 10:41 am, edited 2 times in total.
NoNameNoBlame
Karma
0

Re: Two users

Sun Feb 17, 2019 10:08 am
Concerning Serbian localization of
other, 2nd, account.

Describe the steps You performed:

1. I logged into 2nd account intended to be "Serbianized"
2. I launched SystemSettings.
3. I selected …

etc.

Edit:

And - when You think it gets really interesting/annoying -,
then add:

Here (step <number>), I expected <ABC> to happen.
But, what happened instead was: <XYZ>
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Two users

Sun Feb 17, 2019 12:31 pm
Uf, I do not know where to start, I opened another user, this user can not copy anything, for example. settings for Firefox, it can not even copy from one linux for example. .mozilla. The strangest thing is that in the situation that only a user approaches his drive, I can not change anything in the licenses. Some Linuxs can access and read / home and some do not. From Calcual when I'm looking at the licenses it says that the owner of my_name is a group guest. When I look from my linux where I added my user is the owner of my_name group my_name, none of the permissions can be changed, blurred. Now, in the end, in my order through Dolphin, I kept my promise to the owner and the group is empty. I totally despise all the linuxs I have.
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Two users

Sun Feb 17, 2019 1:00 pm
As far as localization is concerned, my primary account has already been localized and when I opened up another user he was automatically localized as my primary account. All programs installed on my primary account were installed on that second account. I tried to extract the keys for the enigma and settings of .thunderbirda from other linux, but it does not allow me, as if in that second account I use the settings of the first one and when I start, it asks me to open new mail accounts. I have always copied the settings of some programs from linux to linux if it's about thunderbird only when I start it for the first time I pick up mail acauntes that I do not want in that linux, for example, gmail my wife in which she receives facebbok nonsense etc ...
NoNameNoBlame
Karma
0

Re: Two users

Sun Feb 17, 2019 1:33 pm
You: "I opened another user"

A) You created another user-account and then You
logged off, and logged into the new user-account.
Correct?

B) You: "this user can not copy anything"
100% not true. Probably You mean something else.

C) You: "for example. settings for Firefox, … for example. .mozilla"
If You successfully locked down the other account, then
of course it can't. Or do You mean something else?

D) You: "it can not even copy from one linux"
I don't understand this. Please, clarify.

E) You: "only a user approaches his drive"
Please reformulate. I can't decypher this expression.

F) You: "I can not change anything in the licenses"
I think, You're talking about file-permissions.
What did You do? What didn't work?
Describe Your steps and your expectations.

G) You: "Some Linuxs can access and read / home and some do not."
This may be right. This is KDE neon based on Ubuntu, based on Debian.
They do it their way, and I think it's the most usual way. Nothing
exotic, here. What other Linuxes are You thinking about?

H) You: "From Calcual when I'm looking at the licenses"
As far as I can see, Calcual is a Calculator sold by HP.
Are You talking about this? What are "licenses"? Do You
talk about file-permissions?

I) You: "it says that the owner of my_name is a group guest"
If You somehow created a GUEST-userAccount, then this may
be the source of all Your problems. Create a normal second/third
account.

J) You: "When I look from my linux where I added my user is the owner of my_name group my_name, none of the permissions can be changed, blurred."
If it's only a GUEST-account, then You may be right. Don't create a
GUEST account.

K) You: "in my order through Dolphin, I kept my promise to the owner and the group is empty."
If "order" means "folder" and "promise" means "permissions",
then it looks as if You were successful.

L) You: "I totally despise all the linuxs I have."
If You do on a Microsoft or Apple GUEST-account,
what You did on Your UNIX-like OS, then the results
will be equally non-functional. And MacOS is UNIX-based, too.
It wouldn't work there because of the same reasons.
This is not a Linux-problem. And generally: Not a UNIX-problem.
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Two users

Sun Feb 17, 2019 4:46 pm
NoNameNoBlame wrote:You: "I opened another user"

A) You created another user-account and then You
logged off, and logged into the new user-account.
Correct? Yes

B) You: "this user can not copy anything"
100% not true. Probably You mean something else.
I tried to copy settings for mozilla, thunderbir, waterfox from another Neon linux which I have
I have 7 linux distribution on disks, 2 Neon distributions

C) You: "for example. settings for Firefox, … for example. .mozilla"
If You successfully locked down the other account, then
of course it can't. Or do You mean something else?
I could not copy the .mozilla dir from other linux for Firefox to this new user

D) You: "it can not even copy from one linux"
I don't understand this. Please, clarify.
I have 7 linux distribution on disks, 2 Neon distributions

E) You: "only a user approaches his drive"
Please reformulate. I can't decypher this expression.
I use google translate, I forgot English and my daughter speaks, writes and teaches English but I do not want to look for help, she is very busy

F) You: "I can not change anything in the licenses"
I think, You're talking about file-permissions.
What did You do? What didn't work?
Describe Your steps and your expectations.
Yes file-permissions. I looked through the dolphin file-permissions, right click properties and all file-permissions is blur

G) You: "Some Linuxs can access and read / home and some do not."
This may be right. This is KDE neon based on Ubuntu, based on Debian.
They do it their way, and I think it's the most usual way. Nothing
exotic, here. What other Linuxes are You thinking about?

I could always from every linux that I have to see / home and / and with the new dolphin all to copy or change to / etc / fstab if I make a new swap file and the UUID changes


H) You: "From Calcual when I'm looking at the licenses"
As far as I can see, Calcual is a Calculator sold by HP.
Are You talking about this? What are "licenses"? Do You
talk about file-permissions?
Calaculate linux is a Russian gentoo with a GUI installer, can be used with ready binary packages or compiled from a source. Yes file-permissions


I) You: "it says that the owner of my_name is a group guest"
If You somehow created a GUEST-userAccount, then this may
be the source of all Your problems. Create a normal second/third
account.
I never created it GUEST user or change file-permissions

J) You: "When I look from my linux where I added my user is the owner of my_name group my_name, none of the permissions can be changed, blurred."
If it's only a GUEST-account, then You may be right. Don't create a
GUEST account.
I never created it GUEST-account, Maybe it's creating a program like Teamviewer

K) You: "in my order through Dolphin, I kept my promise to the owner and the group is empty."
If "order" means "folder" and "promise" means "permissions",
then it looks as if You were successful.
Yes

L) You: "I totally despise all the linuxs I have."
If You do on a Microsoft or Apple GUEST-account,
what You did on Your UNIX-like OS, then the results
will be equally non-functional. And MacOS is UNIX-based, too.
It wouldn't work there because of the same reasons.
This is not a Linux-problem. And generally: Not a UNIX-problem.

No, I have windows 10, but one of its drives serves as a warehouse, ntfs3g, linux write and read to NTFS partition. Once a month, I make the update win10 and that's all. I mostly use Calculate linux or Manjaro
NoNameNoBlame
Karma
0

Re: Two users

Sun Feb 17, 2019 6:19 pm
A) Well, we are communicating via Google's machine-translation.
That's interesting.
I see, You are determined to solve this problem.

B) If You want to copy between different operating systems,
You may be the victim of different user identification numbers.

Even if You use the same accountUser names everywhere, it's the numbers which are used by the operating systems.

Execute

$ $(which id)

on all machines You use during copying
and compare the numbers.

Especially

$(which id) -u
and
$(which id) -ur

are important.

Next in importance:

$(which id) -g
and
$(which id) -gr


C) The best solution for Your problems would probably be
to create a setguid public folder.
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Two users

Sun Feb 17, 2019 7:34 pm
I use 2 the same accountUser names everywhere :) UID and GID they are the same. I'm going to check it out.
Thanks for your help:)
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Two users

Sun Feb 17, 2019 7:51 pm
Two linux, Calculate, and Manjaro, different usename, UID is the same, GID is 1000 or 1001, groups is 1000 or 1001. Although different GID I have now written from Manjaro to file in Calculate. :)

Especially

$(which id) -u
and
$(which id) -ur

are important.

Next in importance:

$(which id) -g
and
$(which id) -gr


1000 1000
1000 1000
1000 1001
1000 1001
Each linux distro one user is the same number, usename is not important, all use the UID = 1000 which is in all linux distro same

Last edited by alideda on Sun Feb 17, 2019 8:14 pm, edited 1 time in total.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell