sysadmin

When could or should I use chmod g+s on a file or directory?

情到浓时终转凉″ 提交于 2019-12-02 15:33:08
In deploying to a new (Solaris 9) environment recently, one of the steps was to copy a set of files and directories to their new location and then to apply the group UID bit (using "chmod -R g+s") to all files in the directory tree giving a mode of -rwxr-s--- to everything. The result was that none of our shell scripts would execute unless they were individually opened and re-saved. I should add that we had earlier set g+s on the target parent folder prior to copying files; this had set the initial mode on all the new directories to drwxr-s--- but the files had a mode of -rwxr-x--- Having

Crontab Day of the Week syntax

戏子无情 提交于 2019-12-02 14:05:20
In crontab does the Day of the Week field run from 0 - 6 or 1 -7 ? I am seeing conflicting information on this. wikipedia states 0-6 and other sites I have seen are 1-7 . Also what would be the implication or either using 0 or 7 incorrectly? i.e. would the cron still run? 0 and 7 both stand for Sunday, you can use the one you want, so writing 0-6 or 1-7 has the same result. Also, as suggested by @Henrik, it is possible to replace numbers by shortened name of days, such as MON , THU , etc: 0 - Sun Sunday 1 - Mon Monday 2 - Tue Tuesday 3 - Wed Wednesday 4 - Thu Thursday 5 - Fri Friday 6 - Sat

How do I install MySQL and the Python MySQL package on OS X Leopard? Or how do I learn about being a web developer using OS X?

蓝咒 提交于 2019-11-30 20:51:28
I'm new to the Mac OS X, and I'm just about ready to throw my brand new MacBook Pro out the window. Every tutorial on setting up a Django development environment on Mac OS X Leopard is insidiously wrong. They are all skipping over one step, or assuming you have setup something one way, or are just assuming that I know one thing that I must not. I'm very familiar with how to setup the environment on Ubuntu/Linux, and the only part I'm getting stuck on with OS X is how to install MySQL, autostart it, and install the Python MySQL bindings. I think my mistake was using a hodgepodge of tools I don

How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN?

…衆ロ難τιáo~ 提交于 2019-11-30 17:56:31
问题 How do I get a list of the active IP-addresses, MAC-addresses and NetBIOS names on the LAN? I'd like to get NetBIOS name, IP and MAC addresses for every host on the LAN, preferably not having to walk to every single PC and take note of the stuff myself. How to do that with Windows Script Host/PowerShell/whatever? 回答1: As Daren Thomas said, use nmap. nmap -sP 192.168.1.1/24 to scan the network 192.168.1.* nmap -O 192.168.1.1/24 to get the operating system of the user. For more information,

Font for mac osx that is as readable and compact as the default xterm (X11) font

别来无恙 提交于 2019-11-30 11:41:31
问题 The font used in xterms is extremely compact yet readable. What font is that? The closest I've found that I can use in other other applications is DejaVu Sans Mono or Bitstream Vera Sans Mono. Those are as compact as xterms vertically but take up more space horizontally. I'd really like to switch from xterms to Terminal.app and this is the one thing holding me back. (I also think that font would be much better for emacs, xcode, or whatever editor.) ADDED: In Terminal.app you can adjust the

How can I delete a service in Windows?

一世执手 提交于 2019-11-30 10:03:00
问题 I have a couple old services that I want to completely uninstall. How can I do this? 回答1: Use the SC command, like this (you need to be on a command prompt to execute the commands in this post): SC STOP shortservicename SC DELETE shortservicename Note: You need to run the command prompt as an administrator, not just logged in as the administrator, but also with administrative rights. If you get errors above about not having the necessary access rights to stop and/or delete the service, run

What are the various files that could have PATH declarations for OS X Terminal in them?

ぐ巨炮叔叔 提交于 2019-11-30 09:52:42
So I'm having a path issue on OS X Leopard. It seems OS X is adding other paths that I'm not stating and it's messing with my path priority. I only have a .bash_login file, I don't have a .bashrc or a .profile file. My .bash_login file is as such: export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" When I run export this is the path it returns: PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin" Any ideas on what could be putting /usr/bin in there and how I could get /usr/local/bin to be a higher priority. I'm tagging this for

How do I install MySQL and the Python MySQL package on OS X Leopard? Or how do I learn about being a web developer using OS X?

天大地大妈咪最大 提交于 2019-11-30 04:51:15
问题 I'm new to the Mac OS X, and I'm just about ready to throw my brand new MacBook Pro out the window. Every tutorial on setting up a Django development environment on Mac OS X Leopard is insidiously wrong. They are all skipping over one step, or assuming you have setup something one way, or are just assuming that I know one thing that I must not. I'm very familiar with how to setup the environment on Ubuntu/Linux, and the only part I'm getting stuck on with OS X is how to install MySQL,

Font for mac osx that is as readable and compact as the default xterm (X11) font

一世执手 提交于 2019-11-30 01:01:58
The font used in xterms is extremely compact yet readable. What font is that? The closest I've found that I can use in other other applications is DejaVu Sans Mono or Bitstream Vera Sans Mono. Those are as compact as xterms vertically but take up more space horizontally. I'd really like to switch from xterms to Terminal.app and this is the one thing holding me back. (I also think that font would be much better for emacs, xcode, or whatever editor.) ADDED: In Terminal.app you can adjust the character and line spacing for any font. Is this possible in other applications? I'm open to any other

Free DNS server for Windows XP/Vista/Win7? [closed]

人走茶凉 提交于 2019-11-29 21:21:11
I'm currently developing a security solution that should work across domains and as such I need a small private dns server to add various entries to. I could alter the hosts file to achieve the same result but since the hosts file doesn't support wildcard chars I will have a whole lot of entries, so a DNS server that supports wildcards would be a little bit easier. Any suggestions? As a reference: http://sourceforge.net/projects/acrylic/ Acrylic is a local DNS proxy which improves the performance of your computer by caching the responses coming from your DNS servers. I found it to work