LinuxQuestions.org
Review your favorite Linux distribution.
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 05-31-2006, 10:59 AM   #1
odirex
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Question Linux without any users?


Is it possible to make a linux installation without any users or login it all? I mean having it how windows 95 used to be: The computer just boots up right into your command line or gui and you don't need log in.

I don't just want the system to automatically log in to a specific user account, I specifically want there to be no such thing as a user account on the system.

If anyone has seen this type of linux distro or knows how to make it happen, please fill me in.

I've got a feeling this might require re-writing a part of kernel source code. I'd like to avoid that if possible.

...Maybe down the line, if I get the above to happen, I would program a way to add password protection to commands or files on a function by function basis.
 
Old 05-31-2006, 11:08 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Welcome to LQ!

Quote:
I don't just want the system to automatically log in to a specific user account, I specifically want there to be no such thing as a user account on the system.
I think that you're asking Linux to be something other than it is. Users are an integral part of the OS and you can't really rip them out or ignore them.

Quote:
I mean having it how windows 95 used to be: The computer just boots up right into your command line or gui and you don't need log in.
I think this is possible, although I personally believe it is a bad idea. There have been several threads on that topic here, so do a little searching and you'll probably find something. However, you will be automatically logging in as a specific user.
Quote:
...Maybe down the line, if I get the above to happen, I would program a way to add password protection to commands or files on a function by function basis.
This already exists in Linux and is called sudo. The point of sudo is to give permission to normal users to run specific commands with root privileges without having to know root's password.


If you have some specific scenario in mind, post it and we'll see how it can be done without writing your own OS.
 
Old 05-31-2006, 11:19 AM   #3
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
You will need a super user, and atleast 1 user i believe, every file has an owner, if they are not owned by root, then they must be owned by someone else, if they are owned by root, you must be root to have adequete permissions to the files.

You may want no users but some services use them, such as apache (nobody) etc.

I think the best way is to auto login to a shared user or something, and use su for when configuring etc.

Why are you trying to achieve this? we may be able to advise a better solution
 
Old 05-31-2006, 11:35 AM   #4
odirex
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Wink idea not so bad

I've read up on the arguements on why it's a bad idea. I really do understand everyone's point, but I don't need a repeat of all those threads. I just need to know how to do it, if possible.

The point is basically to simplify file structure on the hard drive and actually get rid of permissions. It's for my portable computer. It is always at my side and no one has ever or will ever touch the machine without me watching over their shoulder. I don't want a user name or password to ever be required for anything other than a web site login.

At the very least, I could set it to log in automatically as root (yes, I understand this is a bad idea and I don't want to hear any more about that). The problem then is with the files. Files are stored in a different place on the hard drive depending on which user is using the machine. I don't want the files to be in a directory based on user name, I want all the files to be in generic top-level directories.

That would mean redefining the paths for all the default user directories, and where a few of the shortcuts in my gui are pointing to. That's probably not hard to do, but it's only an easy substitute for what i really want.

If the only way to do it is to rewrite a lot of source code, then I'd appreciate a few pointers in the right direction; like which of the source files deal with interpreting user login and privelages.

If I am going to just have root do an auto-login... for posterity, is there a way to give the 'root' user a different alias? If I must have 1 user, I'd at least like it to have my name. (Creating a user other than root and giving it full privelages is already making the system have 2 users, defeating the point of what i want to see.)

btw, ethics, I'm finding the link in your signature (the file system explanation) extremely useful. Thanks very much.

Last edited by odirex; 05-31-2006 at 11:46 AM.
 
Old 05-31-2006, 11:43 AM   #5
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
why so lazy? why not just learn to do it the proper way? you end up causing yourself 10x more work than just using the OS the way it was intended to begin with.

 
Old 05-31-2006, 01:47 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
This idea is a bit like buying a car and then modifying it to become a boat. Theoretically possible, but hardly worth the effort.
If you want to avoid using a password, you can certainly do that.

And this is hard to resist: If you want something like Windows 95, then maybe you should get.......WINDOWS 95!!!
(The very thought turns my stomach)
 
Old 05-31-2006, 02:11 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I'm going to agree with pixellany. If the no-user or single user situation is critical for you, Linux is a poor choice and you would be much better off using Windows.
 
Old 05-31-2006, 02:56 PM   #8
odirex
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
...windows

I've been using windows on the laptop for a while, but windows is hardly versatile. Besides, any windows after 98 has users just like linux. In windows XP I'm still stuck with just renaming the administrator and having it auto-login.

My problem with windows the gui. It's not easy to make the windows interface do what I want and look how I need it to. It's been very easy for me to customize linux guis.
 
Old 05-31-2006, 04:19 PM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Besides, any windows after 98 has users just like linux.
There is a reason for this. If even Microsoft has started implementing users, you might want to consider joining the parade.

You want to play with lit dynamite, the answers you seek are here. Took me all of one search to find it.
 
  


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
How to setup FTP users only users on LInux Fedora Soujiro Linux - Newbie 8 09-13-2010 07:34 AM
FreeBSD users vs Linux users introuble General 13 05-23-2006 04:19 AM
New Forum for Linux-Gurus[Programming/Administration] or Linux-Advanced Users [ Progr raees LQ Suggestions & Feedback 5 04-12-2005 07:35 PM
Suggestions for my home network - Linux, other (non-Linux) users, Games, etc. lrt2003 Linux - General 5 05-06-2004 09:11 PM

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

All times are GMT -5. The time now is 03:24 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