
Hi there all, sorry for the dumb newbie question: I have created a directory in my /usr directory called 'scilab'. I would like to have read/write permission for that directory and for directories within. glenn(a)glenn-acer:/usr$ ls -al total 168 drwxr-xr-x 13 root root 4096 2009-01-06 22:35 . drwxr-xr-x 21 root root 4096 2008-12-19 16:14 .. drwxr-xr-x 2 root root 36864 2009-01-03 00:27 bin drwxr-xr-x 2 root root 4096 2008-12-19 16:09 games drwxr-xr-x 36 root root 4096 2008-12-22 01:03 include drwxr-xr-x 167 root root 69632 2009-01-03 00:27 lib drwxr-xr-x 2 root root 4096 2008-12-22 21:34 lib32 lrwxrwxrwx 1 root root 3 2008-12-17 23:37 lib64 -> lib drwxr-xr-x 10 root root 4096 2008-07-02 21:47 local drwxr-xr-x 2 root root 12288 2008-12-27 23:46 sbin drwxr-xr-x 2 root root 4096 2009-01-06 22:39 scilab <----------- drwxr-xr-x 317 root root 12288 2009-01-03 00:27 share drwxrwsr-x 6 root src 4096 2008-12-19 16:10 src drwxr-xr-x 4 root root 4096 2008-12-20 13:10 X11R6 glenn(a)glenn-acer:/usr$ Would I be right to assume that I needed the ownership of scilab to be glenn instead of root, i.e: drwxr-xr-x 2 glenn glenn 4096 2009-01-06 22:39 scilab how do I command Linux to change from root to me? Glenn

2009/1/6 Glenn Stuart Morrissey <gmorrissey(a)kol.co.nz>:
Hi there all,
sorry for the dumb newbie question:
That's okay. We were all at that point some time too :-)
I have created a directory in my /usr directory called 'scilab'. I would like to have read/write permission for that directory and for directories within.
chmod -R +rwX directory_name -R (recursive) +rwX (give read and write permission, and execute permission if already set or is a directory, note capital X) directory_name (directory(ies) and/or file(s) you want to give permission too)
Would I be right to assume that I needed the ownership of scilab to be glenn instead of root, i.e:
If you are giving everyone read and write permission, then there would be no need to change ownership, as you (and everyone else accessing the computer) can read and write to it.
how do I command Linux to change from root to me?
To change ownership of the directory from root to you, run: sudo chown <user> <directory> replacing <user> and <directory> with the appropriate information. Like with chmod you can add a -R switch for recursive changing of ownership. See the chmod and chown man pages for more information. -- simon

Simon Green wrote:
2009/1/6 Glenn Stuart Morrissey <gmorrissey(a)kol.co.nz>:
Hi there all,
sorry for the dumb newbie question:
That's okay. We were all at that point some time too :-)
Something that WLUG has been recommending to people for quite a while is the RUTE User's Tutorial and Exposition, available at http://linux.2038bug.com/rute-home.html amongst other places. It's quite a hefty document - don't bother printing it all out unless you're really keen - and it covers off a heap of basic stuff like this. Well worth reading. As a general point to the original poster: you probably should have made that directory under /user/local/, rather than straight under /usr/. /usr/local is nominated as a suitable directory path for installing locally managed software, as distinct to anything managed by the distribution. It's 99% cosmetic, so don't worry too much, but it's just a nice way of keeping extra packages you've installed above and beyond what your distro offer in a single location. One benefit is apparent if you want to back up and reinstall your machine, for example, then you can be confident that anything "extra" you did is in that directory, so you minimise the risk of losing or forgetting something. If you're interested more in the filesystem layout, look for the Linux Fileysystem Hierarchy Standard at http://www.pathname.com/fhs/

Is there a way to make the hard disk spin down after X amount of time, such as 30 minutes in Ubuntu? It's easy in Windows, but Ubuntu doesn't seem to have a way to do that. At least, not with a handy GUI interface. During this heat, I figured my laptop might be slightly cooler if I could spin the hard disk down when it wasn't being used. Sandy

Chakat Sandwalker wrote:
Is there a way to make the hard disk spin down after X amount of time, such as 30 minutes in Ubuntu? It's easy in Windows, but Ubuntu doesn't seem to have a way to do that. At least, not with a handy GUI interface. During this heat, I figured my laptop might be slightly cooler if I could spin the hard disk down when it wasn't being used.
From the command line you can do it with hdparm. I'm not sure about setting it on startup or if there is a GUI available, will be watching this space to find out. Glenn -- Glenn Ramsey <glenn(a)componic.co.nz> 07 8627077 http://www.componic.co.nz

Glenn Ramsey wrote:
Chakat Sandwalker wrote:
Is there a way to make the hard disk spin down after X amount of time, such as 30 minutes in Ubuntu? It's easy in Windows, but Ubuntu doesn't seem to have a way to do that. At least, not with a handy GUI interface. During this heat, I figured my laptop might be slightly cooler if I could spin the hard disk down when it wasn't being used.
From the command line you can do it with hdparm. I'm not sure about setting it on startup or if there is a GUI available, will be watching this space to find out.
Had a quick look in /etc and my Ubunutu 8.04 has /etc/hdparm.conf which appears to be exactly what you want. Glenn -- Glenn Ramsey <glenn(a)componic.co.nz> 07 8627077 http://www.componic.co.nz
participants (5)
-
Chakat Sandwalker
-
Daniel Lawson
-
Glenn Ramsey
-
Glenn Stuart Morrissey
-
Simon Green