Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,207
» Latest member: Meup
» Forum threads: 4,029
» Forum posts: 16,404
Full Statistics
|
Online Users |
There are currently 254 online users. » 0 Member(s) | 252 Guest(s) Bing, Google
|
Latest Threads |
How to install Archboot i...
Forum: Network Problems
Last Post: Meup
Yesterday, 01:41 PM
» Replies: 0
» Views: 37
|
clear logs in smoothwall
Forum: Security and Firewalls
Last Post: amanda63
2024-03-10, 03:27 PM
» Replies: 8
» Views: 73,315
|
I cannot install RedHat 8...
Forum: Redhat
Last Post: hybrid
2023-11-11, 01:01 PM
» Replies: 1
» Views: 30,036
|
How things are done, usin...
Forum: Xorg Problems
Last Post: ross
2023-09-04, 09:03 AM
» Replies: 0
» Views: 1,635
|
Im back.....
Forum: Hello
Last Post: anyweb
2021-01-17, 11:36 AM
» Replies: 1
» Views: 5,036
|
add mp3 plugin to xmms in...
Forum: Fedora
Last Post: anyweb
2021-01-17, 11:30 AM
» Replies: 11
» Views: 40,595
|
Configuring VSFTPd Server
Forum: FTP Server
Last Post: Johnbaca
2020-10-14, 10:25 AM
» Replies: 32
» Views: 102,984
|
Wolf won't play sound!
Forum: Game Problems
Last Post: Guest
2020-10-03, 05:51 PM
» Replies: 1
» Views: 43,815
|
Using git + python
Forum: How Do I?
Last Post: Clueless puppy
2020-08-21, 04:37 PM
» Replies: 0
» Views: 34,321
|
what does your nick mean ...
Forum: Hello
Last Post: volt
2020-08-06, 03:25 PM
» Replies: 28
» Views: 40,076
|
|
|
ADD a user |
Posted by: Digerati - 2003-12-15, 02:47 PM - Forum: Tips and Tricks
- Replies (1)
|
 |
To add a user to your system bring up a terminal window and issue these commands:
To add a user use useradd [username]
then password the name by using passwd like
passwd [username]
All this must be carried out as super user
To become a super user just type su - and enter the root password.
Ex.
[digerati@rh9 /]$su -
password:
[digerati@rh9 root]# useradd scrote
[digerati@rh9 root]# passwd scrote
Changing password for user scrote.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
All done.
|
|
|
password expirey level |
Posted by: Digerati - 2003-12-15, 02:39 PM - Forum: Tips and Tricks
- No Replies
|
 |
To edit the password expirey level edit the /etc/login.def.
# Password aging controls:
#
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires.
#
PASS_MAX_DAYS 30
PASS_MIN_DAYS 0
PASS_MIN_LEN 5
PASS_WARN_AGE 7
|
|
|
chkconfig |
Posted by: Digerati - 2003-12-15, 02:38 PM - Forum: Tips and Tricks
- No Replies
|
 |
To check what starts on start up do chkconfig [servicename]
or chkconfig --list to see whats going on
or do chkconfig [servicename] on for one that is off
EX # chkconfig ssh on
There are runs levels or boot modes that may need attention:
EX:postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Levels 5 is gui mode; 3 is shell boot mode, so anywhere from 2~5 is good.
|
|
|
notes |
Posted by: Digerati - 2003-12-15, 02:32 PM - Forum: Tips and Tricks
- Replies (3)
|
 |
Make yourself a notes file to keep documentation on changes you made on your system or just general notes about commands and things.
I created a file called notes.txt at /var/notes.txt and when I want to add to it simply do this
[digerati@rh9 /]$ cat >> /var/notes.txt
type something and hit ctrl d when finished.
Since this >> appends to the file I like to add a # sign before the actual typing like:
[digerati@rh9 /]$ cat >> /var/notes.txt
#
type something and hit ctrl d when finished.
|
|
|
Custom Icons |
Posted by: Digerati - 2003-12-15, 02:05 PM - Forum: LAMP
- Replies (1)
|
 |
Use custom icons with Apache directory listings
If you are running apache, you can replace the default icons used when a directory is listed with your own. The icons are usually in /usr/share/httpd/icons/, /var/www/icons, or in windows it will be under your apache directory under icons and I would suggest backing all of these up before you mess with them. you can do this quickly by typing:
# cp -r /var/www/icons /var/www/icons.bak
You can use the Get Info (Command-I in the Finder) command to view the icon for a certian type of file, then copy it and use Photoshop or something to save the icon as a gif. Then replace the default icon file with the one you have just created. Now when list a dirctory you should see your customized icon.
You can also add new types by edditing you httpd.conf file (/etc/httpd/httpd.conf). Add the line:
AddIcon [PathToIcon] [Extensions]
For example, if you want an icon to show up for disk images then add the line:
AddIcon /icons/diskimg.gif .dmg .cdr .smi
I would suggest adding these lines in with all of the others that are already in the httpd.conf file.
You can also comment out a few lines to protect them using the # sign in front.
Here is what my icon listing looks like.
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
#AddIconByType (TXT,/icons/text.gif) text/*
#AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
#AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/exe.gif .bin .exe .EXE
AddIcon /icons/msi.gif .msi .MSI .Msi
AddIcon /icons/dll.gif .dll .DLL .Dll
AddIcon /icons/ini.gif .ini .INI .Ini .inf .INF .Inf
AddIcon /icons/bat.gif .bat .BAT .Bat
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz
AddIcon /icons/a.gif .ps .ai .eps
#AddIcon /icons/layout.gif .shtml
#AddIcon /icons/text.gif .txt
AddIcon /icons/txt.gif .txt .TXT
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/msword.gif .doc .DOC
AddIcon /icons/msexcel.gif .xls .XLS .xlt
AddIcon /icons/dwg.gif .dwg .DWG
AddIcon /icons/ppt.gif .ppt .PPT
AddIcon /icons/zip.gif .zip .ZIP .dat .DAT .cab .CAB .Cab .cat .CAT
AddIcon /icons/msg.gif .msg
AddIcon /icons/msie.gif .html .htm
AddIcon /icons/pdf.gif .pdf
AddIcon /icons/bmp.gif .bmp .gif .jpg .jpeg
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif
See how I commented some and also added all types of extensions so that apache will not get ticky about it.
Here are what a few look like that I created and use.
[/url][url=http://www.thebatchfile.com/junk/list/]http://www.thebatchfile.com/junk/list/
|
|
|
Add Printer from batch file |
Posted by: Digerati - 2003-12-15, 01:46 PM - Forum: Tips and Tricks
- Replies (1)
|
 |
You can add these in batch scripting or logon scripting to aid in the adding and deletion of printers.
add printer
rundll32 printui.dll,PrintUIEntry /in /n \\server1\1220C
delete printer
rundll32 printui.dll,PrintUIEntry /dn /n \\server1\PRT4
|
|
|
FTP only user |
Posted by: Digerati - 2003-12-15, 01:44 PM - Forum: Tips and Tricks
- No Replies
|
 |
To add a user for ftp purpose only so they can log into their home dir and do nothing but upload and download.
use:
useradd -m -k /dev/null -s /sbin/nologin {username}
for web use - if your hosting a www site for them and only want to give them ftp access
useradd -d /var/www/html/{username} -m -k /dev/null -s /sbin/nologin {username}
|
|
|
|