编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

Linux学习日志20081026(linux学习视频)

wxchong 2024-07-07 00:17:49 开源技术 10 ℃ 0 评论

20081026------------------------------------------------------------------------

1 install: dictionary en<->hz

StarDict还算好用,字典装在目录:

C:\Program Files\StarDict\dic

字典装好后,其下面有有这几个目录:

stardict-cdict-gb-2.4.2

stardict-langdao-ce-gb-2.4.2

stardict-langdao-ec-gb-2.4.2

stardict-oxford-gb-2.4.2

stardict-wordnet-3.0.0

20081027------------------------------------------------------------------------

使用cygwin cron中发现如下问题:

安装cron后,用cronevent显示记录,提示:

2008/11/18 15:25:10 [huanglin] /usr/sbin/cron: PID 3740: (CRON) error (can't switch user context)

上网搜索后,解决方法如下:

RGH! Don't do this. Remove the Everyone group from these rights

again. The easiest way is to follow the ssh-host-config script in

creating a special account:

net user cron_server <passwd> /add /yes

net localgroup <administrators_group_name> cron_server /add

editrights -a SeAssignPrimaryTokenPrivilege -u cron_server

editrights -a SeCreateTokenPrivilege -u cron_server

editrights -a SeIncreaseQuotaPrivilege -u cron_server

editrights -a SeServiceLogonRight -u cron_server

mkpasswd -l -u cron_server >> /etc/passwd

For security reasons:

editrights -a SeDenyInteractiveLogonRight -u cron_server

editrights -a SeDenyNetworkLogonRight -u cron_server

editrights -a SeDenyRemoteInteractiveLogonRight -u cron_server

And then create a cron service using that account:

cygrunsrv -I cron -p /usr/sbin/cron -a -D -u cron_server -w <passwd>

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表