Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-17-2003, 02:22 AM   #1
Registered: Oct 2002
Distribution: RedHat 8 or 9 (shrike)- Fedora Core 1,2
Posts: 215

Rep: Reputation: 30
How can i accomplish this ?

I Running redhat 9 and i would like that everytime i add a user a public_html and cgi-bin directories are created with correct permissions. Is it possible ? Has anyone done this ?
Old 10-17-2003, 05:34 AM   #2
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
You should be able to put them in /etc/skel, and add a user with:
adduser -m username
This should then copy them over from skel, with the owner set as the new user.
Read man adduser for more info
Old 10-17-2003, 05:38 AM   #3
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Am I missing something? I should think it would be easy to write a shell script that takes in a user name and uses mkdir, chown, chgrp, and chmod to set it up for you.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
I am probably the first ever to accomplish this, Cards_STL Member Success Stories 13 10-31-2005 04:07 AM
Trying to accomplish something which I thought was pretty basic.... a5150a Linux - Newbie 6 08-02-2003 08:46 PM
Need a command to accomplish... infamous41md Linux - General 1 05-19-2003 04:14 PM > Forums > Linux Forums > Linux - Software

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