New User Creation

Hi! I have a question. :slight_smile:

So, I need to create on my PC “guest” account… So, how to turn off in this account mounting of some drives for example and so on?..

Thank you…

AFAIK the drives will be mounted whatever user is logged in.

You can restrict a user by making them a member of a group which only has access to certain folders/files.

Bear in mind that they will have read access to any folder/file which is open to ‘others’ unless you close that off on all other folders/files.

You may get a more helpful answer if you describe exactly what you want to do in more detail.

Ha! … Ok…

the problem is… Suse is installed on my laptop, so there is only one user (me) with password, of course…

And some times my mother or sister or someone else need to login on my laptop JUST to browse the Internet :slight_smile:

So, I don’t like to tell em my pass, of course :slight_smile:

And I have an idea to create the “guest” user, where will be only Firefox shortcut on the desktop :slight_smile: … And without any access to my hard drives (NTFS drives, system is on another)…

So… understand? :slight_smile:

I now understand the problem. Because Windows permissions are different from Linux permissions, while you could create one or more Linux users with restricted access within Linux and give them their own passwords, they would have the same access to Windows as you do - unless someone more expert than I in setting up Windows mount points can offer a suggestion.

First of all I suggest you do a bit of reading on linux permissions. What you want can easily be acchieved, but needs a little knowledge. Even if following directions brings you exactly what you want, maybe next year you want the guest-user to be able to access one or more of the partitions, so read about this.

This is how it can be done:

  • Create an extra user. Note that ‘guest’ and translations are weak as usernames. The user can have standard permissions, so that all system functions will be available. The guest-user will have a normal /home/guest-user-name account.
  • Create a new group (‘onlyme’ as an example), make yourself the only member of the group.
  • Now you want to restrict any access to the mounted partitions to only yourself. I assume you know where these partitions are mounted.
  • Hit Ctrl-Alt-F1 to get to the console, login with ‘root’ and rootpassword.
  • Type: mount, you’ll see all mounted partitions and where they are mounted. Let’s say you’ve got a partition mounted on /DirExample that you want to restrict the access to. If you do an ‘ls -ld /DirExample’ you will see the permissions for the folder /DirExample which is where a partition is mounted. You’ll see that root is the owner, users is the group and that the folder is r(ead)w(rite)x(ecutable, -essible) for root, r-x for ‘users’ and r-x for ‘the rest of the world’. The last 2 are wrong for your situation.
  • Now change the group, by typing ‘chgrp onlyme /DirExample -R’ The -R means recursive, so that all files and folders in /DirExample get same permissions
  • Now change the access rights of /DirExample by typing ‘chmod 770 /DirExample -R’. This will give you read-write-execute and anybody not belonging to group ‘onlyme’, no rights at all in and on /DirExample. Since you belong to ‘onlyme’ you have all the rights.

You can make the changes from Yast - Users and groups.

Is there a kiosk mode that will do what he wants also?

Ok, thanks a lot… I’ll try this instructions and to find out smth. about permissions… :))

Oh, one little question not about this problem, if I may?.. I have a Perl script, for example, is it hard to make this script “standart” for system?..

For example, I have a calculator script, so to call it, I need this - “./cacl.pl 1+1”…
And I’d like this, simply - “calc 1+1”…??