Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-21-2004, 11:59 PM   #1
LQ Newbie
Registered: May 2004
Posts: 5

Rep: Reputation: 0
Question useradd and modifying style.css and index.html to add new user's name

Hello folks,

I searched for topic that relate to this subject but didn't find anything so sorry if this is a dupe.

My situation is this. I want useradd to automate customization of the default index.html in the user's public_html.

I have added the public_html dir and default index.html to /etc/skel so thats a non issue.

What i need is to customize:

~user/public_html/index.html with the new user's name.
modify the navbar class in all user's index.html to add a link to the new user's page.
I am using CSS to keep a uniform look to the web site.

So I guess I need a $username variable to add to the index.html in /etc/skel and a way to parse the navbar class and add a new line in it. in multiple files in multiple locations.

if this isn't clear you can take a look at and view the source to see what is going on in the class navbar.

thanks in advance for your time and your help.

Old 05-22-2004, 01:59 AM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926Reputation: 926
It shouldn't be too hard to modify existing user
adding scripts (like Slack's adduser) to add a
line to some html file using sed/awk ...

Old 05-22-2004, 09:21 AM   #3
LQ Newbie
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0

I think thats what I needed to know. Those are the tools I need to use.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
A little HTML/CSS help? jon_k General 9 07-17-2005 01:49 AM
html/css retrodict Programming 5 11-01-2004 06:56 PM
html/css hylke Programming 0 06-27-2004 02:39 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 05:06 AM
change scrollbar style with CSS nephilim Programming 4 10-14-2003 01:38 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:07 PM.

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