Attempting to install package below from SUSE 9 cds, Yast says: ------- kdelibs3-devel-3.1.4-24.i586.rpm failed rpm output: error: unpacking of archive failed on file /etc/opt/kde3/ common_options;40b9edf5: cpio: mkdir failed - Permission denied. ------- In /etc the file kde3rc contains the following: [Directories] prefixes=/etc/opt/kde3/ I also get "/etc/opt/kde3: Permission denied" when doing updatedb. I don't have an /etc/opt/kde3, or at least I can't see it... jake@linux:~> ls -ald /etc/opt drwxr-xr-x 4 root root 96 2004-04-30 19:48 /etc/opt jake@linux:~> cd /etc/opt jake@linux:/etc/opt> ls /bin/ls: kde3: Permission denied gnome jake@linux:/etc/opt> sux Password: linux:/etc/opt # ls /bin/ls: kde3: Permission denied . .. gnome Can anybody help explain this to me?
On Sunday 30 May 2004 20.55, Jake wrote:
jake@linux:/etc/opt> sux Password: linux:/etc/opt # ls /bin/ls: kde3: Permission denied . .. gnome
Can anybody help explain this to me?
When root gets permission denied trying to do 'ls', it's usually a sign of a corrupted file system. Did you recently have a crash? I would suggest a reiserfsck (I'm guessing you're running reiser. People who have these sorts of problems usually seem to be).
When root gets permission denied trying to do 'ls', it's usually a sign of a corrupted file system. Did you recently have a crash?
yes, my 7 year old got stuck in a game and decided the solution was to hold down the power button.
I would suggest a reiserfsck (I'm guessing you're running reiser. People who have these sorts of problems usually seem to be).
Correct again, reiser it is. I'll do as you suggest, thanks. Jake
* Jake <xx@xx.xx> [05-30-04 18:55]:
I also get "/etc/opt/kde3: Permission denied" when doing updatedb.
I don't have an /etc/opt/kde3, or at least I can't see it...
jake@linux:~> ls -ald /etc/opt drwxr-xr-x 4 root root 96 2004-04-30 19:48 /etc/opt
NOTE: ^^^^ ^^^^
jake@linux:~> cd /etc/opt jake@linux:/etc/opt> ls /bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux... -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
On Sunday 30 May 2004 14:59, Patrick Shanahan wrote: /snip/
/bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux... -- Patrick Shanahan Registered Linux User #207535
I can't believe that so much stuff is perms denied in these later versions of Linux. I could deal with the eralier versions. Now, someone please tell me what is the difference between su and sudo and sux. And why? --doug
* Doug McGarrett <xx@xx.xx> [05-31-04 00:38]:
I can't believe that so much stuff is perms denied in these later versions of Linux. I could deal with the eralier versions.
They still work the same.
Now, someone please tell me what is the difference between su and sudo and sux. And why?
man su man sudo sux is su with access to X. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
The only reference I can find, in the SuSE manuals, is to su, not to sudo or sux. I also looked in several other Linux and Unix references. In Que's "Special Edition, Using Linux," is the definition: "sudo. You probably want to skip this package. It is basically a system administration utility and a potential security hole in the Linux system." That's as close as I can get. --doug On Monday 31 May 2004 01:34, Doug McGarrett wrote:
On Sunday 30 May 2004 14:59, Patrick Shanahan wrote: /snip/
/bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux... -- Patrick Shanahan Registered Linux User #207535
I can't believe that so much stuff is perms denied in these later versions of Linux. I could deal with the eralier versions. Now, someone please tell me what is the difference between su and sudo and sux. And why?
--doug
On Monday 31 May 2004 01:34, Doug McGarrett wrote:
On Sunday 30 May 2004 14:59, Patrick Shanahan wrote: /snip/
/bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux...
I can't believe that so much stuff is perms denied in these later versions of Linux. I could deal with the eralier versions. Now, someone please tell me what is the difference between su and sudo and sux. And why?
"su" is the standard command to change users. Plain "su" changes to root with the current environment (environment variables like $HOME, aliases, etc.). I.e., you run with root's permissions only. "su -" changes to root and adopts root's environment. I.e., you are essentially logged in as root (there are slight differences that usually can be ignored). And "su - user" changes to a user "user" with that user's environment. "sux" is a SuSE specific command. It gives the new user permission to access the running X server. I.e., "su -" will not let you run X programs, even as root, unless you have given permission as the original user (e.g., "xhost +localhost"). In SuSE, "sux" is almost always the command to use instead of plain "su". Note: any change from an ordinary user to any other user, root or ordinary, requires that user's password. "sudo" executes a single command as the target user. It has configuration information that must be editted first before using. See "man sudoers" and "man visudo" (visudo is the preferred way to change the configuration file, it checks the syntax of the configuration file before committing it). "sudo" allows ordinary users to run privileged commands, if given the appropriate permissions by root. E.g. you could allow specific users to shutdown the systems without giving them root's password. HTH, Jeffrey
On Wed, 2004-06-02 at 12:55, Jeffrey L. Taylor wrote:
On Monday 31 May 2004 01:34, Doug McGarrett wrote:
On Sunday 30 May 2004 14:59, Patrick Shanahan wrote: /snip/
/bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux...
I can't believe that so much stuff is perms denied in these later versions of Linux. I could deal with the eralier versions. Now, someone please tell me what is the difference between su and sudo and sux. And why?
"su" is the standard command to change users. Plain "su" changes to root with the current environment (environment variables like $HOME, aliases, etc.). I.e., you run with root's permissions only. "su -" changes to root and adopts root's environment. I.e., you are essentially logged in as root (there are slight differences that usually can be ignored). And "su - user" changes to a user "user" with that user's environment.
Also you might note that "su" does -not- stand for "SuperUser" it stands for "Switch User". -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
On Wed, 2004-06-02 at 13:17, Ken Schneider wrote:
On Wed, 2004-06-02 at 12:55, Jeffrey L. Taylor wrote:
On Monday 31 May 2004 01:34, Doug McGarrett wrote:
On Sunday 30 May 2004 14:59, Patrick Shanahan wrote: /snip/
/bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux...
I can't believe that so much stuff is perms denied in these later versions of Linux. I could deal with the eralier versions. Now, someone please tell me what is the difference between su and sudo and sux. And why?
"su" is the standard command to change users. Plain "su" changes to root with the current environment (environment variables like $HOME, aliases, etc.). I.e., you run with root's permissions only. "su -" changes to root and adopts root's environment. I.e., you are essentially logged in as root (there are slight differences that usually can be ignored). And "su - user" changes to a user "user" with that user's environment.
Also you might note that "su" does -not- stand for "SuperUser" it stands for "Switch User".
Close enough. man su NAME su - run a shell with SUBSTITUTE USER and group IDs I know... means the same thing, but I feel, what the heck, if yer gonna get technical, be correct. `*8) -- Brad Shelton On Line Exchange http://www.ole.net Phone: 313-526-1111 Fax: 313-526-3333
Close enough. man su
NAME su - run a shell with SUBSTITUTE USER and group IDs
I know... means the same thing, but I feel, what the heck, if yer gonna get technical, be correct.
One must always be correct, if given the opportunity :-) Now I don't have an old BSD system handy any more, but I wonder what that ancient tome would say on the subject. Like Jeffrey, I recall switch user rather than what the current manpage suggests. Of course I'm old and the memory isn't what used to be :-) but I don't think I would have made that up. Bob
On Wed, 2004-06-02 at 13:49, Bob Netherton wrote:
Close enough. man su
NAME su - run a shell with SUBSTITUTE USER and group IDs
I know... means the same thing, but I feel, what the heck, if yer gonna get technical, be correct.
One must always be correct, if given the opportunity :-) Now I don't have an old BSD system handy any more, but I wonder what that ancient tome would say on the subject. Like Jeffrey, I recall switch user rather than what the current manpage suggests. Of course I'm old and the memory isn't what used to be :-) but I don't think I would have made that up.
Bob
When I had my original unix training way back in 1989 the term quoted to me was "switch user". Now with linux being "unix like" some things will be different. I believe this is one of them. Now we are getting way off topic. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
On Wed, 2004-06-02 at 14:01, Ken Schneider wrote:
On Wed, 2004-06-02 at 13:49, Bob Netherton wrote:
Close enough. man su
NAME su - run a shell with SUBSTITUTE USER and group IDs
I know... means the same thing, but I feel, what the heck, if yer gonna get technical, be correct.
One must always be correct, if given the opportunity :-) Now I don't have an old BSD system handy any more, but I wonder what that ancient tome would say on the subject. Like Jeffrey, I recall switch user rather than what the current manpage suggests. Of course I'm old and the memory isn't what used to be :-) but I don't think I would have made that up.
Bob
When I had my original unix training way back in 1989 the term quoted to me was "switch user". Now with linux being "unix like" some things will be different. I believe this is one of them.
Now we are getting way off topic.
Yeah, but it was fun. Wasn't it? -- Brad Shelton On Line Exchange http://www.ole.net Phone: 313-526-1111 Fax: 313-526-3333
On Wednesday 02 June 2004 20.01, Ken Schneider wrote:
When I had my original unix training way back in 1989 the term quoted to me was "switch user". Now with linux being "unix like" some things will be different. I believe this is one of them.
From the man page for 'su' in the seventh edition UNIX SU(1) SU(1) NAME su - substitute user id temporarily
On Wednesday 02 June 2004 20.39, Jeffrey L. Taylor wrote:
Quoting Anders Johansson <andjoh@rydsbo.net>: [snip]
From the man page for 'su' in the seventh edition UNIX
Now you are getting back to my roots!
Jeffrey
Unix user since 1977 ;)
and damn close to my own Oxygen user since 1971 :)
* Anders Johansson <xx@xx.xx> [06-02-04 13:51]:
On Wednesday 02 June 2004 20.39, Jeffrey L. Taylor wrote:
Quoting Anders Johansson <andjoh@rydsbo.net>: [snip]
From the man page for 'su' in the seventh edition UNIX
Now you are getting back to my roots!
Jeffrey
Unix user since 1977 ;)
and damn close to my own
Oxygen user since 1971 :)
oxygen user since 1941 :^) -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
On Wednesday 02 June 2004 19:50, Anders Johansson wrote:
On Wednesday 02 June 2004 20.39, Jeffrey L. Taylor wrote:
Quoting Anders Johansson <andjoh@rydsbo.net>: [snip]
From the man page for 'su' in the seventh edition UNIX
Now you are getting back to my roots!
Jeffrey
Unix user since 1977 ;)
and damn close to my own
Oxygen user since 1971 :) and on, and on, and on, and on, and on ,and on . -- G6NJR Pete otherwise known as "Quinton 11"
A Linux Only area Happy bug hunting M$ clan Pete,,,,, :-)
Jeffrey L. Taylor wrote:
Quoting Anders Johansson <andjoh@rydsbo.net>: [snip]
From the man page for 'su' in the seventh edition UNIX
Now you are getting back to my roots!
Shouldn't that be "/roots". ;-)
Quoting James Knott <james.knott@rogers.com>:
Jeffrey L. Taylor wrote:
Quoting Anders Johansson <andjoh@rydsbo.net>: [snip]
From the man page for 'su' in the seventh edition UNIX
Now you are getting back to my roots!
Shouldn't that be "/roots". ;-)
Nope, didn't have root privileges. ;}
On Wednesday 02 June 2004 13:17, Ken Schneider wrote: /snip/ You may be right, but the term "super user" is used by the book "Teach Yourself Linux in 10 Minutes" by John Ray (SAMS). The book also calls it "substitute user," which I think I've seen elsewhere. (PS--I think he must mean 10 minutes a day, or something like that--maybe 10 minutes a page!) --doug
Also you might note that "su" does -not- stand for "SuperUser" it stands for "Switch User".
-- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
On Wednesday 02 June 2004 17:03, Doug McGarrett wrote:
On Wednesday 02 June 2004 13:17, Ken Schneider wrote:
to the effect that super user was not the correct name.
I finally found my copy of "Essential System Administration" (Second edition) by Aileen Frisch (O'Reilly, 1995). Page 5 tells how to become the Superuser. This is one of the most useful texts that I have run across, and altho it applies specifically to Unix, it has a section on Linux, and specific comments on Linux where the systems may differ. It is available used from Amazon (make sure it's the latest edition) and sold (sells) new for US$32.95. I knew I hadn't made it up! --doug
* Doug McGarrett <xx@xx.xx> [06-02-04 20:15]:
On Wednesday 02 June 2004 17:03, Doug McGarrett wrote:
On Wednesday 02 June 2004 13:17, Ken Schneider wrote:
to the effect that super user was not the correct name.
I finally found my copy of "Essential System Administration" (Second edition) by Aileen Frisch (O'Reilly, 1995). Page 5 tells how to become the Superuser.
as: Superuser = root not as: su = Superuser
I knew I hadn't made it up!
correct words, wrong context. You didn't make it up, thou. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
On Wed, 2004-06-02 at 21:31, Patrick Shanahan wrote:
* Doug McGarrett <xx@xx.xx> [06-02-04 20:15]:
On Wednesday 02 June 2004 17:03, Doug McGarrett wrote:
On Wednesday 02 June 2004 13:17, Ken Schneider wrote:
to the effect that super user was not the correct name.
I finally found my copy of "Essential System Administration" (Second edition) by Aileen Frisch (O'Reilly, 1995). Page 5 tells how to become the Superuser.
as: Superuser = root
not as: su = Superuser
That doesn't seem clear to me. I think what you're trying to say is that the Superuser is root, but that su does NOT mean SuperUser. Would that be accurate? (Boy this is gettin' funner). -- Brad Shelton On Line Exchange http://www.ole.net Phone: 313-526-1111 Fax: 313-526-3333
On Thu, 2004-06-03 at 08:22, Brad Shelton wrote:
On Wed, 2004-06-02 at 21:31, Patrick Shanahan wrote:
* Doug McGarrett <xx@xx.xx> [06-02-04 20:15]:
On Wednesday 02 June 2004 17:03, Doug McGarrett wrote:
On Wednesday 02 June 2004 13:17, Ken Schneider wrote:
to the effect that super user was not the correct name.
I finally found my copy of "Essential System Administration" (Second edition) by Aileen Frisch (O'Reilly, 1995). Page 5 tells how to become the Superuser.
as: Superuser = root
not as: su = Superuser
That doesn't seem clear to me.
I think what you're trying to say is that the Superuser is root, but that su does NOT mean SuperUser.
Would that be accurate?
(Boy this is gettin' funner).
That is correct. su = substitute user as in su - username will temporarily change you to that user (provided you know that users password). Leave off the username and it attempts to change you root. Superuser has become synonymous with root. -- Ken Schneider unix user since 1989 linux user since 1994 SuSE user since 1998 (5.2)
On Sunday 30 May 2004 19:59, Patrick Shanahan wrote:
drwxr-xr-x 4 root root 96 2004-04-30 19:48 /etc/opt
NOTE: ^^^^ ^^^^
jake@linux:~> cd /etc/opt jake@linux:/etc/opt> ls /bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux...
Patrick, with the greatest respect, if you're going to answer posts with "RTFM" as often as you do... you have to RTFWQ 8) [WQ = whole question] Jake (deliberately late-posted because actually your RTFM comments are right usually it's just you've not read my question properly twice now...)
* Jake <xx@xx.xx> [06-09-04 16:17]:
On Sunday 30 May 2004 19:59, Patrick Shanahan wrote:
drwxr-xr-x 4 root root 96 2004-04-30 19:48 /etc/opt
NOTE: ^^^^ ^^^^
jake@linux:~> cd /etc/opt jake@linux:/etc/opt> ls /bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux...
Patrick, with the greatest respect, if you're going to answer posts with "RTFM" as often as you do... you have to RTFWQ 8) [WQ = whole question]
Jake
(deliberately late-posted because actually your RTFM comments are right usually it's just you've not read my question properly twice now...)
I guess you will have to use a bigger hammer. I am lost and haven't even had the first cold one tonite. Please elucidate [wrt rtfwq]. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
It's not that important. Enjoy yr cold one when it arrives 8) Jake
On Wednesday 09 June 2004 23.21, Jake wrote:
On Sunday 30 May 2004 19:59, Patrick Shanahan wrote:
drwxr-xr-x 4 root root 96 2004-04-30 19:48 /etc/opt
NOTE: ^^^^ ^^^^
jake@linux:~> cd /etc/opt jake@linux:/etc/opt> ls /bin/ls: kde3: Permission denied
you need root access, ie: su or sudo or sux...
Patrick, with the greatest respect, if you're going to answer posts with "RTFM" as often as you do... you have to RTFWQ 8) [WQ = whole question]
I don't think this is a case of not reading the whole question, it's a case of not understanding unix permissions. Last I checked, you didn't have to be root just to cd to a directory owned by root. If that were the case, you would have some difficulty working a linux system, since just about everything is owned by root :)
On Wednesday 09 June 2004 23:46, Anders Johansson wrote:
I don't think this is a case of not reading the whole question, it's a case of not understanding unix permissions. Last I checked, you didn't have to be root just to cd to a directory owned by root. If that were the case, you would have some difficulty working a linux system, since just about everything is owned by root :)
Anders! (my fault, I didn't quote properly) In my original post, I included the lines: jake@linux:/etc/opt> sux <this is what Patrick missed> Password: linux:/etc/opt # ls /bin/ls: kde3: Permission denied ...it wasn't just a cd (indeed, you knew this becuase your post solved the problem) Heck i wished I just shut up now 8) Jake
Sorry, I see my mistake <blush> Jake <jet-lag, just back from Chicago BookExpo - forgive me>
On Sunday 30 May 2004 7:55 pm, Jake wrote:
Attempting to install package below from SUSE 9 cds, Yast says:
------- kdelibs3-devel-3.1.4-24.i586.rpm failed rpm output: error: unpacking of archive failed on file /etc/opt/kde3/ common_options;40b9edf5: cpio: mkdir failed - Permission denied. -------
In /etc the file kde3rc contains the following:
[Directories] prefixes=/etc/opt/kde3/
I also get "/etc/opt/kde3: Permission denied" when doing updatedb.
I don't have an /etc/opt/kde3, or at least I can't see it...
jake@linux:~> ls -ald /etc/opt drwxr-xr-x 4 root root 96 2004-04-30 19:48 /etc/opt jake@linux:~> cd /etc/opt jake@linux:/etc/opt> ls /bin/ls: kde3: Permission denied gnome jake@linux:/etc/opt> sux Password: linux:/etc/opt # ls /bin/ls: kde3: Permission denied . .. gnome
Can anybody help explain this to me?
Dunno. But as you don't have an /etc/opt/kde3, my first stab at this would be to try making one [mkdir /etc/opt/kde3] and to expect to find that I couldn't because I was the wrong id or something. As the permissions I have on /etc/opt indicate it belongs to root and only the user [ie root can write entries], I would tend to think of trying the install as root. hth Vince Littler
On Sunday 30 May 2004 02:55 pm, Jake wrote:
Password: linux:/etc/opt # ls /bin/ls: kde3: Permission denied . .. gnome
Can anybody help explain this to me?
An acl perhaps? "man getfacl". -- _/_/_/ Bob Pearson gottadoit@mailsnare.net _/_/_/ "Logic is in the eye of the logician." - Gloria Steinem
On Sunday 30 May 2004 06:01 pm, Jake wrote:
On Sunday 30 May 2004 20:08, Bob Pearson wrote:
An acl perhaps? "man getfacl".
Thanks Bob, I read the man page(s) and learned a bit 8)
You are welcome. I am sorry it was not the right answer. Best Regards. -- _/_/_/ Bob Pearson gottadoit@mailsnare.net _/_/_/ "Logic is in the eye of the logician." - Gloria Steinem
participants (12)
-
Anders Johansson
-
Bob Netherton
-
Bob Pearson
-
Brad Shelton
-
Doug McGarrett
-
Jake
-
James Knott
-
Jeffrey L. Taylor
-
Ken Schneider
-
Patrick Shanahan
-
peter Nikolic
-
Vince Littler