LinuxQuestions.org
Visit Jeremy's Blog.
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-22-2004, 12:59 AM   #1
kelticfury
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 http://shaitan.gameworkshop.com and view the source to see what is going on in the class navbar.

thanks in advance for your time and your help.

-S
 
Old 05-22-2004, 02:59 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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 ...



Cheers,
Tink
 
Old 05-22-2004, 10:21 AM   #3
kelticfury
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Sed/Awk

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

Thanks!

-S
 
  


Reply


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

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

All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration