Linux
Questions
- How do I add users to my linux box via the console?
- How do I find my IP address on a Linux box?
- Locate is finding some stuff I know I deleted. How do I update the linux file system?
- How do I locate stuff under Linux?
- What's the best way to find stuff under linux... I know the directory but not necessarily where in the directory.
- Under Apache, how do i find the running user as it states in http://tikiwiki.org/tiki-index.php?page=InstallTikiDoc?
- How do I rename the tiki folder from tikiwikiRCversionXXX to tiki?
- How do I go back to my last used directory under linux?
Answers
First find it
slocate sudoers
It's probably in /etc directory
vi to sudoers
and then add your users with something like this
mynewuser ALL= NOPASSWD: ALL
/sbin/ifconfig
will produce the below, and note I'm on a network.
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:B9
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24677 errors:1 dropped:0 overruns:0 frame:0
TX packets:24079 errors:1 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:100
RX bytes:20491270 (19.5 Mb) TX bytes:2869058 (2.7 Mb)
Interrupt:11 Base address:0x5000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2775 errors:0 dropped:0 overruns:0 frame:0
TX packets:2775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1016943 (993.1 Kb) TX bytes:1016943 (993.1 Kb)
Try
locate *.tpl | less
That way when you get a bunch of files matching your search you can step through the list. Be more specific like
locate *mod*.tpl
In case you know where to search, try
find . -name "*user*"
When in tiki directory.
Mose answers:
grep user /etc/httpd.conf
$: mv tikiwikiRCversionXXX tiki
check
$man mv for more help.