You are not logged in.
Could anyone supply the chmod command to reset all the permissions in my own home directory to what they should be ? I.e. so that I can open them when I am not root!
Offline
You probably want to
sudo chmod $HOME -R u=rw,g=r,o= ; sudo chown $USER $HOME ; find $HOME -type d -exec chmod +x {} \;
Last edited by Spider.007 (2008-06-12 19:07:25)
Offline
I thought 'sudo' was an Ubuntu-ism, but I guess its horribleness is spreading to other distributions. Is sudo even in base?
Alas, blindly setting permissions to all the files in your home dir to 640 might break things. I.e. stuff which should be executable, or just about -need- to have other permissions.
Offline
Thankyou! I can now save settings in pcmanfm. hurray
Offline
oh and I previously had installed sudo. Sorry sniffles!
Offline
I thought 'sudo' was an Ubuntu-ism, but I guess its horribleness is spreading to other distributions. Is sudo even in base?
Alas, blindly setting permissions to all the files in your home dir to 640 might break things. I.e. stuff which should be executable, or just about -need- to have other permissions.
is it I didn't know that I thought that sudo was in all linux I learn something new everyday
Offline
Nope, sudo has been around long before Ubuntu..long before Debian and long before GNU and Linux, for that matter.
Offline
Yes, but I agree with ol' sniffles here, Ubuntu over-uses sudo! I mean, come on! It's a nice tool but it's not meant to replace 'su'...
It's like when your girlfriend starts listening to one of your favorite heavy metal bands all the time. It just makes you feel gay hearing it later on
That's taking all the fun from it...
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
I guess I'm a sudo over user then
I hardly ever use su directly, unless I am going to do more then one privileged command at a time.
Offline
sudo transformed my archlinux installation into a windows one:
my user can invoke sudo without ever supplying a password, true story...
Offline
I did that, got rid of the requirement for password, as I believe I'm the only one in family that uses linux.
There is a difference between bleeding [edge] and haemorrhaging. - Allan
Offline
Nope, sudo has been around long before Ubuntu..long before Debian and long before GNU and Linux, for that matter.
Indeed, but as far as the Linux/BSD universe in concerned, Ubuntu was the one to popularize it, so that now you see it almost everywhere someone posts a command which needs to be run as root. Instead of saying "run as root" : <some command> they say -- run sudo <some command>.
sudo is fine and dandy I suppose, but users tend to not know what they're doing, some end up creating a 2nd "super-user" (so they might as well just be using root directly) [possible examples carlocci and XFire ?]
Last edited by sniffles (2008-06-13 08:37:22)
Offline
Using sudo to grant a single user root privileges defeats the purpose of the root account. sudo is not meant to be used in that way.
I, for example have sudo installed and set up and I use it for some commands that I run often, but surely not for everything!
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...
Offline
I only use it to edit files in /etc/ and some programs. But what's the benefit of su over sudo?
Offline
Vintendo: how exactly have you told sudo to only allow you to edit some files in /etc ?
Offline
sudo is meant for systems where you anticipate more than one person administrating systems. Sudo will log actions, which increase accountability. You also can assign sudoers different permissions, so you can have one person or department handling one particular aspect, while someone else manages another. This prevents puts in more control so people can't just do whatever they want. You can also disable the root account. So actually, it is sort of meant to replace sudo. I'm not exactly sure, but I think disabling the root account will increase security?
Offline
Using sudo to grant a single user root privileges defeats the purpose of the root account. sudo is not meant to be used in that way.
Root is me anyway: it's just a fast way to tell the program: "Just friggin do it, this is an absolute order, don't make me su -c command enter password enter"
It's just a 3* letters alias for "please don't look while I write my password" su -c command enter password enter.
I, for example have sudo installed and set up and I use it for some commands that I run often, but surely not for everything!
that's insecure anyway
* I rename /usr/bin/sudo to a different name to prevent some stupid applications, like yaourt, from trying to run "sudo program" automatically without notifying me
Offline
Vintendo: how exactly have you told sudo to only allow you to edit some files in /etc ?
I haen't made it that way. That's just the only reason why i use it..
Offline