Re: wheel group & mkdir
On Tuesday 06 September 2011 16:19:51 Fbsd8 wrote: > Beech Rintoul wrote: > > On Tuesday 06 September 2011 15:13:48 Fbsd8 wrote: > >> Matthew Seaman wrote: > >>> On 06/09/2011 16:49, Fbsd8 wrote: > I have a user that belongs to the wheel group but when the user tries > to issue mkdir command it gets a permission denied error. > > How do I fix this? > >>> > >>> Make the directory that contains where your user is trying to create a > >>> new subdirectory writable by group wheel. Either that, or teach your > >>> user to use su(1) or sudo(1) so they can mkdir as root. (Adding users > >>> to group wheel so they are permitted to run su(1) is a BSD-ism, and is > >>> the usual reason for adding anyone to wheel.) > >>> > >>> Cheers, > >>> > >>> Matthew > >> > >> Matthew > >> > >>Thanks for your reply. I have a user id that is in the wheel group. I > >> > >> su and get prompted for the user id's password after which I get > >> returned to the command line. Running the script with the mkdir command > >> embedded still returns Permission Denied message. I have read the su man > >> page to no joy. Could you please explain the sequence of events to get > >> su to work. > > > > user# su > > Pass: root password > > root# > > > > Beech > > Thank you Beech. > I was entering the password of the user. > When I entered root's password the script containing mkdir worked. > > One remaining question. Is there any time limit on having root access? > I mean will root access remain until the user exits? Yes, the shell will remain root until you either logout (it will go back to user) or close the shell. Beech -- --- Beech Rintoul - FreeBSD Developer - be...@freebsd.org /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://people.freebsd.org/~beech X - NO Word docs in e-mail | Skype: akbeech / \ - http://www.FreeBSD.org/releases/8.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
On 07/09/2011 01:19, Fbsd8 wrote: Thank you Beech. I was entering the password of the user. When I entered root's password the script containing mkdir worked. One remaining question. Is there any time limit on having root access? I mean will root access remain until the user exits? Thanks again No, once a users SSH session times out/is closed the root provledges are lost and you have to SU again. If they remain logged in they keep root privlidges (sp!) until they log out. Richard -- Richard Collyer Blue Apex Ltd 07900 997 380 Registered as a company in England and Wales (Reg Number: 05982514). Registered Address: 42 King Richards Hill, Earl Shilton, Leicester, LE9 7EY __ Information from ESET NOD32 Antivirus, version of virus signature database 6442 (20110906) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
On 07/09/2011 00:13, Fbsd8 wrote: > Thanks for your reply. I have a user id that is in the wheel group. > I su and get prompted for the user id's password after which I get > returned to the command line. Running the script with the mkdir command > embedded still returns Permission Denied message. I have read the su man > page to no joy. Could you please explain the sequence of events to get > su to work. With su(1), you need to give the root password to get rootly powers. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: SV: wheel group & mkdir
Hasse Hansson wrote: -Oprindelig meddelelse- Fra: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] På vegne af Fbsd8 Sendt: den 7 september 2011 01:14 Til: Matthew Seaman Cc: Freebsd-questions@freebsd.org Emne: Re: wheel group & mkdir Matthew Seaman wrote: On 06/09/2011 16:49, Fbsd8 wrote: I have a user that belongs to the wheel group but when the user tries to issue mkdir command it gets a permission denied error. How do I fix this? Make the directory that contains where your user is trying to create a new subdirectory writable by group wheel. Either that, or teach your user to use su(1) or sudo(1) so they can mkdir as root. (Adding users to group wheel so they are permitted to run su(1) is a BSD-ism, and is the usual reason for adding anyone to wheel.) Cheers, Matthew Matthew Thanks for your reply. I have a user id that is in the wheel group. I su and get prompted for the user id's password after which I get returned to the command line. Running the script with the mkdir command embedded still returns Permission Denied message. I have read the su man page to no joy. Could you please explain the sequence of events to get su to work. Thanks Hello. If I've got the correct impression of it, to be in the wheel group, able you to su to root, meaning get root privilieges. BUT you have to know and use the root password. If you have installed the "sudo" port, which is very easy to config, just by removing some "hash #" marks some common privilieges of the wheel group, to obtain almost "root power" configurable by you. And also configuarable is, if you like the group to use their own passwords or none, just belonging to the wheel group, when issuing the sudo command. According to my humble understanding, just belonging to the wheel group without further configuration, don't get you much more. /Hasse Thank you Hasse You gave me the solution. I was entering the password of the user and should have been entering the root password. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
SV: wheel group & mkdir
-Oprindelig meddelelse- Fra: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] På vegne af Fbsd8 Sendt: den 7 september 2011 01:14 Til: Matthew Seaman Cc: Freebsd-questions@freebsd.org Emne: Re: wheel group & mkdir Matthew Seaman wrote: > On 06/09/2011 16:49, Fbsd8 wrote: >> I have a user that belongs to the wheel group but when the user tries to >> issue mkdir command it gets a permission denied error. >> >> How do I fix this? > > Make the directory that contains where your user is trying to create a > new subdirectory writable by group wheel. Either that, or teach your > user to use su(1) or sudo(1) so they can mkdir as root. (Adding users > to group wheel so they are permitted to run su(1) is a BSD-ism, and is > the usual reason for adding anyone to wheel.) > > Cheers, > > Matthew > Matthew Thanks for your reply. I have a user id that is in the wheel group. I su and get prompted for the user id's password after which I get returned to the command line. Running the script with the mkdir command embedded still returns Permission Denied message. I have read the su man page to no joy. Could you please explain the sequence of events to get su to work. Thanks Hello. If I've got the correct impression of it, to be in the wheel group, able you to su to root, meaning get root privilieges. BUT you have to know and use the root password. If you have installed the "sudo" port, which is very easy to config, just by removing some "hash #" marks some common privilieges of the wheel group, to obtain almost "root power" configurable by you. And also configuarable is, if you like the group to use their own passwords or none, just belonging to the wheel group, when issuing the sudo command. According to my humble understanding, just belonging to the wheel group without further configuration, don't get you much more. /Hasse ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
Beech Rintoul wrote: On Tuesday 06 September 2011 15:13:48 Fbsd8 wrote: Matthew Seaman wrote: On 06/09/2011 16:49, Fbsd8 wrote: I have a user that belongs to the wheel group but when the user tries to issue mkdir command it gets a permission denied error. How do I fix this? Make the directory that contains where your user is trying to create a new subdirectory writable by group wheel. Either that, or teach your user to use su(1) or sudo(1) so they can mkdir as root. (Adding users to group wheel so they are permitted to run su(1) is a BSD-ism, and is the usual reason for adding anyone to wheel.) Cheers, Matthew Matthew Thanks for your reply. I have a user id that is in the wheel group. I su and get prompted for the user id's password after which I get returned to the command line. Running the script with the mkdir command embedded still returns Permission Denied message. I have read the su man page to no joy. Could you please explain the sequence of events to get su to work. user# su Pass: root password root# Beech Thank you Beech. I was entering the password of the user. When I entered root's password the script containing mkdir worked. One remaining question. Is there any time limit on having root access? I mean will root access remain until the user exits? Thanks again ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
On Tuesday 06 September 2011 15:13:48 Fbsd8 wrote: > Matthew Seaman wrote: > > On 06/09/2011 16:49, Fbsd8 wrote: > >> I have a user that belongs to the wheel group but when the user tries to > >> issue mkdir command it gets a permission denied error. > >> > >> How do I fix this? > > > > Make the directory that contains where your user is trying to create a > > new subdirectory writable by group wheel. Either that, or teach your > > user to use su(1) or sudo(1) so they can mkdir as root. (Adding users > > to group wheel so they are permitted to run su(1) is a BSD-ism, and is > > the usual reason for adding anyone to wheel.) > > > > Cheers, > > > > Matthew > > Matthew > Thanks for your reply. I have a user id that is in the wheel group. I > su and get prompted for the user id's password after which I get > returned to the command line. Running the script with the mkdir command > embedded still returns Permission Denied message. I have read the su man > page to no joy. Could you please explain the sequence of events to get > su to work. user# su Pass: root password root# Beech -- --- Beech Rintoul - FreeBSD Developer - be...@freebsd.org /"\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://people.freebsd.org/~beech X - NO Word docs in e-mail | Skype: akbeech / \ - http://www.FreeBSD.org/releases/8.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
On 9/6/11 7:13 PM, Fbsd8 wrote: Thanks for your reply. I have a user id that is in the wheel group. I su and get prompted for the user id's password after which I get returned to the command line. Running the script with the mkdir command embedded still returns Permission Denied message. I have read the su man page to no joy. Could you please explain the sequence of events to get su to work. Since you're the one having the issue you wish to have resolved, you might want to take it upon yourself to tell us *exactly* what you're typing, what the results are, and what you'd prefer to have happen instead. We can guess what you're doing when you say "I su and get prompted for the user id's password after which I get returned to the command line," but given the root problem is that you don't fully understand the su command, it's hard to be certain what you mean by that. Going out on a limb, however, I'll point out that, when you're logged in as fred su - fred doesn't do much for you as you remain fred, whereas, what was meant in the suggestion to you was something more along the lines of su - which, if you enter root's password, leaves you as root. (Or gives you a shell with root's privileges to be a bit more precise.) But, again, I'd suggest that this would go faster if you provide what you're doing and what the results are rather than what you think you're doing and what you think the results mean. To recap: Cut and paste what's actually happening, not your summary of same. -- --Jon Radel j...@radel.com
Re: wheel group & mkdir
Matthew Seaman wrote: On 06/09/2011 16:49, Fbsd8 wrote: I have a user that belongs to the wheel group but when the user tries to issue mkdir command it gets a permission denied error. How do I fix this? Make the directory that contains where your user is trying to create a new subdirectory writable by group wheel. Either that, or teach your user to use su(1) or sudo(1) so they can mkdir as root. (Adding users to group wheel so they are permitted to run su(1) is a BSD-ism, and is the usual reason for adding anyone to wheel.) Cheers, Matthew Matthew Thanks for your reply. I have a user id that is in the wheel group. I su and get prompted for the user id's password after which I get returned to the command line. Running the script with the mkdir command embedded still returns Permission Denied message. I have read the su man page to no joy. Could you please explain the sequence of events to get su to work. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
> From owner-freebsd-questi...@freebsd.org Tue Sep 6 11:07:48 2011 > Date: Tue, 06 Sep 2011 11:49:04 -0400 > From: Fbsd8 > To: Freebsd-questions@freebsd.org > Cc: > Subject: wheel group & mkdir > > I have a user that belongs to the wheel group but when the user tries to > issue mkdir command it gets a permission denied error. > > How do I fix this? First, figure out _why_ the user is getting that error. exactly -what- executable named 'mkdir' are they trying to run? 'which mkdir' What are the permissions on that file *WHERE* are they trying to create the file, and what are the permissions on -that- directory? Note: Including the _exact_ error message is a GOOD IDEA(tm). There is a *SIGNIFICANT* difference between: $ mkdir foo mkdir: permission denied and $ mkdir foo mkdir: foo: permission denied ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
On Tue, 06 Sep 2011 17:49:32 +0100, Matthew Seaman wrote: > Either that, or teach your > user to use su(1) or sudo(1) so they can mkdir as root. (Adding users > to group wheel so they are permitted to run su(1) is a BSD-ism, and is > the usual reason for adding anyone to wheel.) Just an addition: In regards of what "sudo" does, see "super" (it's in the ports, same category as sudo). It allows a fine control over _what_ commands can be executed. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: wheel group & mkdir
On 06/09/2011 16:49, Fbsd8 wrote: > I have a user that belongs to the wheel group but when the user tries to > issue mkdir command it gets a permission denied error. > > How do I fix this? Make the directory that contains where your user is trying to create a new subdirectory writable by group wheel. Either that, or teach your user to use su(1) or sudo(1) so they can mkdir as root. (Adding users to group wheel so they are permitted to run su(1) is a BSD-ism, and is the usual reason for adding anyone to wheel.) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
wheel group & mkdir
I have a user that belongs to the wheel group but when the user tries to issue mkdir command it gets a permission denied error. How do I fix this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"