Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system Subject: Re: Locked Disks Date: 22 Oct 2015 18:03:25 GMT Organization: People for the Ethical Treatment of Pirates Lines: 29 Message-ID: References: <1mcfm7v.13shvcpx50da2N%csampson@inetworld.net> <1mcgkfc.ga0hzeo8rqq9N%csampson@inetworld.net> <1mcn04j.14jet5gu3g174N%csampson@inetworld.net> <1mcow6t.1be8e8d1k39g4cN%csampson@inetworld.net> X-Trace: individual.net M9XAI3dX86+vJia4m6Z5BgFhroTzqMQbFE88KMstpcK5TWNHjL Cancel-Lock: sha1:5S42+bUR0p1tuuUxhBt2ha/lIXU= X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:83935 On 2015-10-22, Charles H. Sampson wrote: > > Okay, although I know a lot about Unix You always say that, but your posts prove otherwise. > I don't call myself an expert at > this time/. (I have worked on implementing other operating systems > during my career.) Here's where I'm hung up. If I manually enter > > sudo > > I'm asked for my password. I don't know how to handle that in a script, > either bash or c-shell. An explanation of how to do it will keep me from > logging in a root, which is fine by me. If you run the script in the root account there's no need to sudo it. If this is to be an automated script, the obvious solution is to run the script from the root cron table (sudo crontab -e). None of the above requires enabling the root user or logging into the root account with the OS X GUI. Neither of those are recommended due to security reasons, and neither are required. -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR