LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-21-2006, 05:48 PM   #1
nappy501
Member
 
Registered: Mar 2004
Location: UK
Distribution: Redhat 9, then Fedora Core 2, Suse 10.0, 10.2 now 11.3
Posts: 136

Rep: Reputation: 15
Suse 10.0 restricting were new user can go?


Hi

I am running Suse 10.0. There is root and myself. However a friend is coming to stay and uses webmail. I was going to say they could use the computer and set them up as a new user. I have done this, but am unsure what they can access. When they arrived I was going to let them change the password I have put in.

On the home directory I can see their name. So I became worried about what they could access. I'm not worried about anything malicious, but they are not very good on the computer (worse than me, using Windows 98) and I don't want it 'broke' when I come home.

So what I want is for them to beable to access the internet (I use Mozilla as browser), but not email (Thunderbird) and possibly to beable to use the games and Open Office ,(but not beable to access my stuff in Open Office).

So how do I set this up?
And how do I check that I have it set up properly?
Thank you in advance.

Regards

Nappy501
 
Old 06-21-2006, 06:40 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Regular users don't have full break-the-machine powers in Linux. Try to edit/save a file like /etc/fstab as user.
It wouldn't hurt if you ask the person to be respect your property.

To do this right, you should delete that new user and their home folder. then, start over.

Now, here is what I do.
For example: The main user is fred
I set up fred's desktop, screensaver, OpenOffice and other apps just the way I want them.

To make /home/username folder un-openable ( they can't see anything ) to other users, I run the command: chmod 750 /home/fred

Then, I copy all of his settings ( but not thunderbird email ) to the /etc/skel folder. This is where all new users get all of their desktop settings from.
This is the command:
Code:
rm -rf /etc/skel
mkdir /etc/skel
rsync -av --exclude='.thunderbird' /home/fred/ /etc/skel
Now, add a new user with password. I login as that user to make sure it looks ok. If you need to mak some changes, log back in as the template user. Make any changes and run the rsync commands again. Delete the new user and recreate him/her. Log back in as that new user and check to see if everything is ok.

Notice that your /home folder is locked.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
restricting user access with ssh rob_xx17 Linux - Security 4 01-05-2006 06:22 PM
Restricting user login times SuSE 9.1 Prof gekko9 Linux - Security 3 09-26-2004 10:54 AM
Restricting user disk usage ugenn Linux - General 1 05-13-2002 09:16 AM
Restricting user login abbey_lincoln Linux - Security 1 03-26-2002 11:11 AM
Restricting user home directory ? chuck77 Linux - General 3 11-27-2001 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration