LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-12-2008, 10:38 PM   #1
Crash_guy
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
My own personal home server


So I've installed xubuntu on an older p2 machine in my basement and i am running it without an X server and with sshd. I use puTTY to log into it from windows computers and improve my comannd line skills away from home as i am very much a novice right now.

Anyway, i am adding new users and i want the accounts to have limited privlidges. By default they do so this is good =). My problem is that when a new user uses for example
Code:
sudo apt-get install firefox
nothing happens. The prompt just skips to the next line. I would like instead for a line to be printed that states access is denied. or something along those lines. I suspect the option for that is commented out in a config file somewhere.

My other problem is that the users still have access to my home directory. I would like each users directory to be kept private from other users (except for root of course).

Thanks in advance,

--Crash

P.S. if anyone has any other recomendations as to what i could install on the server be my guest. It's basicly just a toy for me right now but i plan to build on it.
 
Old 02-12-2008, 10:48 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
As root

chmod 700 /home/your_username

should stop other users seeing your home directory. What settings does it have now?
 
Old 02-12-2008, 11:00 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Some distro's use a group called "users" as the default group and other's create a group by the same name as the user and make that the default user for each user. My current distro is SuSE, and it uses the "users" group. I would recommend manually creating a new group for each user and make that their default group. That is what I did.

On my system, if a user who isn't a member of the "wheel" group tries to use sudo, they get a nasty message about the incident being reported. The "%wheel" setting is in the /etc/sudoers file. There isn't anything there that I could find about the prompt displayed for unauthorized usage. You use the "visudo" as root to edit the sudoers file.

This isn't related to your questions, but since you are connecting from Windows, I would recommend installing Cygwin/X. This will give you an X server terminal and the bash shell you can use on windows as well. Then if you can use the ssh command to connect to a Linux machine, and use "ssh -X" to have a graphical program display on your windows terminal machine.
 
Old 02-12-2008, 11:11 PM   #4
Crash_guy
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
that helps a lot thank you billymayday. Also jschiwal, i will probably configure the server that way. Thanks for the advice. As far as cygwin goes i won't be using that because the server has no X which is what i prefer as it is running on 128 mb of ram (yes, xfce i know) but it wouldn't much matter anyway because i'm running puTTY off of a usb drive and connecting from different computers. Some i don't have the admin privileges to use cygwin.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there Solaris Installation Packet for Home PC (Personal Computer)? Ferianto Solaris / OpenSolaris 8 02-14-2008 12:51 PM
The missing economic piece for home/personal Linux GiantKillerRobot General 1 03-07-2007 05:07 AM
Can I keep personal files from /home when installing another OS? tigerpatch Ubuntu 2 05-31-2006 09:45 AM
Tried mounting NTFS drive to /home "suse9.1 Personal Ed." scratch09 Linux - Newbie 5 11-11-2004 02:36 PM
Fedora Core 2: Personal, home-based email server issues and questions nmsatyagrahi Linux - Networking 1 07-01-2004 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:22 AM.

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