Anonymous_User Absent Member.
Absent Member.
3973 views

EXIT command in container login script still running user login script

Hi, running NW65SP7. According to
http://www.novell.com/documentation/linux_client/login/data/hb7jx215.html
which talks about the NO_DEFAULT command, it mentions there if you use the
EXIT command in a container login script, that it will prevent the execution
of all user login scripts, is this true? They don't mention this in the
EXIT command section in that same manual...

What I'm doing is actually for NETSTORAGE, I've added:

IF <WEBACCESS> = "1" THEN
IF NOT MEMBER OF "NETSTORAGE_USERS" THEN
EXIT
END
END

to the beginning of my container login script, so that users logging into
http://ip/netstorage, but that haven't been approved for remote access,
don't get any drive mappings, so effectively they can't use NetStorage
unless they're part of the above group. It seems to work, however I've
noticed if that same user has any mappings in their user login script (which
is pretty rare but...) that it will still run those.

Am I misunderstanding the user of the EXIT command, or is this a NetStorage
quirk and I need to post there?

If EXIT is the not the right command, then how in a container login script
can I tell it to NOT run the user login script?

Thanks
James


Labels (2)
0 Likes
6 Replies
Anonymous_User Absent Member.
Absent Member.

Re: EXIT command in container login script still running user login script

You are using EXIT correctly, but I wager that One of the Two "IF/THEN" are
failing.
For starters, you may want to fully qualify the Group name for reliability.

--
Craig Wilson - MCNE, MCSE, CCNA
Novell Support Forums Volunteer Sysop

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.

"JJB" <103REMOVE-THIS267.1555@compuserve.com> wrote in message
news:9BA4k.1804$5H4.421@kovat.provo.novell.com...
> Hi, running NW65SP7. According to
> http://www.novell.com/documentation/linux_client/login/data/hb7jx215.html
> which talks about the NO_DEFAULT command, it mentions there if you use the
> EXIT command in a container login script, that it will prevent the
> execution of all user login scripts, is this true? They don't mention
> this in the EXIT command section in that same manual...
>
> What I'm doing is actually for NETSTORAGE, I've added:
>
> IF <WEBACCESS> = "1" THEN
> IF NOT MEMBER OF "NETSTORAGE_USERS" THEN
> EXIT
> END
> END
>
> to the beginning of my container login script, so that users logging into
> http://ip/netstorage, but that haven't been approved for remote access,
> don't get any drive mappings, so effectively they can't use NetStorage
> unless they're part of the above group. It seems to work, however I've
> noticed if that same user has any mappings in their user login script
> (which is pretty rare but...) that it will still run those.
>
> Am I misunderstanding the user of the EXIT command, or is this a
> NetStorage quirk and I need to post there?
>
> If EXIT is the not the right command, then how in a container login script
> can I tell it to NOT run the user login script?
>
> Thanks
> James
>



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: EXIT command in container login script still running user login script

Hi Craig, the thing is that it does exit the container login script, that is
it doesn't execute any of the MAP commands that follow it in the container
login script, so it must be running the IF/THEN and group name properly?
However it still runs the user login script MAP commands...??

Cheers
James

"Craig Wilson" <craig_d_wilson@yahoo.com> wrote in message
news:k7G4k.1881$5H4.894@kovat.provo.novell.com...
> You are using EXIT correctly, but I wager that One of the Two "IF/THEN"
> are failing.
> For starters, you may want to fully qualify the Group name for
> reliability.
>
> --
> Craig Wilson - MCNE, MCSE, CCNA
> Novell Support Forums Volunteer Sysop
>
> Novell does not officially monitor these forums.
>
> Suggestions/Opinions/Statements made by me are solely my own.
> These thoughts may not be shared by either Novell or any rational human.
>
> "JJB" <103REMOVE-THIS267.1555@compuserve.com> wrote in message
> news:9BA4k.1804$5H4.421@kovat.provo.novell.com...
>> Hi, running NW65SP7. According to
>> http://www.novell.com/documentation/linux_client/login/data/hb7jx215.html
>> which talks about the NO_DEFAULT command, it mentions there if you use
>> the EXIT command in a container login script, that it will prevent the
>> execution of all user login scripts, is this true? They don't mention
>> this in the EXIT command section in that same manual...
>>
>> What I'm doing is actually for NETSTORAGE, I've added:
>>
>> IF <WEBACCESS> = "1" THEN
>> IF NOT MEMBER OF "NETSTORAGE_USERS" THEN
>> EXIT
>> END
>> END
>>
>> to the beginning of my container login script, so that users logging into
>> http://ip/netstorage, but that haven't been approved for remote access,
>> don't get any drive mappings, so effectively they can't use NetStorage
>> unless they're part of the above group. It seems to work, however I've
>> noticed if that same user has any mappings in their user login script
>> (which is pretty rare but...) that it will still run those.
>>
>> Am I misunderstanding the user of the EXIT command, or is this a
>> NetStorage quirk and I need to post there?
>>
>> If EXIT is the not the right command, then how in a container login
>> script can I tell it to NOT run the user login script?
>>
>> Thanks
>> James
>>

>
>



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: EXIT command in container login script still running user login script

I don't know.
I've always had the "Exit" command in my Login scripts because I detest
troubleshooting "User Logon" scripts and never had them run.

Perhaps check to make sure the Client is up to date.
Not a very useful suggestion I know, but that is all that I have.

As a test, could you may call at "DOS SET" command right before the EXIT
command.
If this gets set, it would help confirm you are getting where u think you
are getting inside the IF THEN tests.

--
Craig Wilson - MCNE, MCSE, CCNA
Novell Support Forums Volunteer Sysop

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.

"JJB" <103REMOVE-THIS267.1555@compuserve.com> wrote in message
news:iOz5k.2462$5H4.1298@kovat.provo.novell.com...
> Hi Craig, the thing is that it does exit the container login script, that
> is it doesn't execute any of the MAP commands that follow it in the
> container login script, so it must be running the IF/THEN and group name
> properly? However it still runs the user login script MAP commands...??
>
> Cheers
> James
>
> "Craig Wilson" <craig_d_wilson@yahoo.com> wrote in message
> news:k7G4k.1881$5H4.894@kovat.provo.novell.com...
>> You are using EXIT correctly, but I wager that One of the Two "IF/THEN"
>> are failing.
>> For starters, you may want to fully qualify the Group name for
>> reliability.
>>
>> --
>> Craig Wilson - MCNE, MCSE, CCNA
>> Novell Support Forums Volunteer Sysop
>>
>> Novell does not officially monitor these forums.
>>
>> Suggestions/Opinions/Statements made by me are solely my own.
>> These thoughts may not be shared by either Novell or any rational human.
>>
>> "JJB" <103REMOVE-THIS267.1555@compuserve.com> wrote in message
>> news:9BA4k.1804$5H4.421@kovat.provo.novell.com...
>>> Hi, running NW65SP7. According to
>>> http://www.novell.com/documentation/linux_client/login/data/hb7jx215.html
>>> which talks about the NO_DEFAULT command, it mentions there if you use
>>> the EXIT command in a container login script, that it will prevent the
>>> execution of all user login scripts, is this true? They don't mention
>>> this in the EXIT command section in that same manual...
>>>
>>> What I'm doing is actually for NETSTORAGE, I've added:
>>>
>>> IF <WEBACCESS> = "1" THEN
>>> IF NOT MEMBER OF "NETSTORAGE_USERS" THEN
>>> EXIT
>>> END
>>> END
>>>
>>> to the beginning of my container login script, so that users logging
>>> into http://ip/netstorage, but that haven't been approved for remote
>>> access, don't get any drive mappings, so effectively they can't use
>>> NetStorage unless they're part of the above group. It seems to work,
>>> however I've noticed if that same user has any mappings in their user
>>> login script (which is pretty rare but...) that it will still run those.
>>>
>>> Am I misunderstanding the user of the EXIT command, or is this a
>>> NetStorage quirk and I need to post there?
>>>
>>> If EXIT is the not the right command, then how in a container login
>>> script can I tell it to NOT run the user login script?
>>>
>>> Thanks
>>> James
>>>

>>
>>

>
>



0 Likes
ataubman Absent Member.
Absent Member.

Re: EXIT command in container login script still running user loginscript

On 14/06/08 JJB wrote:
> Hi, running NW65SP7. According to
> http://www.novell.com/documentation/linux_client/login/data/hb7jx215.html
>
> which talks about the NO_DEFAULT command, it mentions there if you
> use the EXIT command in a container login script, that it will prevent the
> execution of all user login scripts, is this true?


Without testing it, no, I don't believe that is true.
--
Andrew C Taubman
Novell Support Forums Volunteer SysOp
http://forums.novell.com/
(Sorry, support is not provided via e-mail)

Opinions expressed above are not
necessarily those of Novell Inc.

Andrew C Taubman (Sorry, support is not provided via e-mail) Opinions expressed above are not necessarily those of Micro Focus.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: EXIT command in container login script still running user login script

I tested with a regular Windows XP PRO running Novell Client 4.91 SP4 for
Windows, and indeed the EXIT command caused it to not process anything
further in the container login script, and it also skipped the user login
script (the 2 MAP commands found there didn't run) - so I had no network
drives mapped....

See my other reply to Craig for more info.

Cheers

"Andrew C Taubman" <ataubman@no-mx.forums.novell.com> wrote in message
news:mpY5k.2913$5H4.1679@kovat.provo.novell.com...
> On 14/06/08 JJB wrote:
>> Hi, running NW65SP7. According to
>> http://www.novell.com/documentation/linux_client/login/data/hb7jx215.html
>>
>> which talks about the NO_DEFAULT command, it mentions there if you
>> use the EXIT command in a container login script, that it will prevent
>> the
>> execution of all user login scripts, is this true?

>
> Without testing it, no, I don't believe that is true.
> --
> Andrew C Taubman
> Novell Support Forums Volunteer SysOp
> http://forums.novell.com/
> (Sorry, support is not provided via e-mail)
>
> Opinions expressed above are not
> necessarily those of Novell Inc.



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: EXIT command in container login script still running user login script

Hi Craig, I tested with a regular Windows XP PRO running Novell Client 4.91
SP4 for Windows, and indeed the EXIT command caused it to not process
anything further in the container login script, and it also skipped the user
login script (the 2 MAP commands found there didn't run) - so I had no
network drives mapped....

The problem must then be with how NetStorage interprets the login scripts,
it skips the container login script, but not the user one... I'll test
further and if need be report it to the bug page.

It'd be better if they simply had a control in NetStorage to say which users
can login with it and which ones can't, it's odd to believe that Novell
would set it up so that a temporary employee given a code for a week to use
a computer within the office can (if they know where it is) login to their
files from the outside and download whatever they want outside of the visual
security that exists in the office. I realize there's other security for
this, but it seems an obvious security hole. I'll probably post this to the
enhancement page too...

Cheers
James

"Craig Wilson" <craig_d_wilson@yahoo.com> wrote in message
news:xsA5k.2475$5H4.413@kovat.provo.novell.com...
>I don't know.
> I've always had the "Exit" command in my Login scripts because I detest
> troubleshooting "User Logon" scripts and never had them run.
>
> Perhaps check to make sure the Client is up to date.
> Not a very useful suggestion I know, but that is all that I have.
>
> As a test, could you may call at "DOS SET" command right before the EXIT
> command.
> If this gets set, it would help confirm you are getting where u think you
> are getting inside the IF THEN tests.
>
> --
> Craig Wilson - MCNE, MCSE, CCNA
> Novell Support Forums Volunteer Sysop
>
> Novell does not officially monitor these forums.
>
> Suggestions/Opinions/Statements made by me are solely my own.
> These thoughts may not be shared by either Novell or any rational human.
>
> "JJB" <103REMOVE-THIS267.1555@compuserve.com> wrote in message
> news:iOz5k.2462$5H4.1298@kovat.provo.novell.com...
>> Hi Craig, the thing is that it does exit the container login script, that
>> is it doesn't execute any of the MAP commands that follow it in the
>> container login script, so it must be running the IF/THEN and group name
>> properly? However it still runs the user login script MAP commands...??
>>
>> Cheers
>> James
>>
>> "Craig Wilson" <craig_d_wilson@yahoo.com> wrote in message
>> news:k7G4k.1881$5H4.894@kovat.provo.novell.com...
>>> You are using EXIT correctly, but I wager that One of the Two "IF/THEN"
>>> are failing.
>>> For starters, you may want to fully qualify the Group name for
>>> reliability.
>>>
>>> --
>>> Craig Wilson - MCNE, MCSE, CCNA
>>> Novell Support Forums Volunteer Sysop
>>>
>>> Novell does not officially monitor these forums.
>>>
>>> Suggestions/Opinions/Statements made by me are solely my own.
>>> These thoughts may not be shared by either Novell or any rational human.
>>>
>>> "JJB" <103REMOVE-THIS267.1555@compuserve.com> wrote in message
>>> news:9BA4k.1804$5H4.421@kovat.provo.novell.com...
>>>> Hi, running NW65SP7. According to
>>>> http://www.novell.com/documentation/linux_client/login/data/hb7jx215.html
>>>> which talks about the NO_DEFAULT command, it mentions there if you use
>>>> the EXIT command in a container login script, that it will prevent the
>>>> execution of all user login scripts, is this true? They don't mention
>>>> this in the EXIT command section in that same manual...
>>>>
>>>> What I'm doing is actually for NETSTORAGE, I've added:
>>>>
>>>> IF <WEBACCESS> = "1" THEN
>>>> IF NOT MEMBER OF "NETSTORAGE_USERS" THEN
>>>> EXIT
>>>> END
>>>> END
>>>>
>>>> to the beginning of my container login script, so that users logging
>>>> into http://ip/netstorage, but that haven't been approved for remote
>>>> access, don't get any drive mappings, so effectively they can't use
>>>> NetStorage unless they're part of the above group. It seems to work,
>>>> however I've noticed if that same user has any mappings in their user
>>>> login script (which is pretty rare but...) that it will still run
>>>> those.
>>>>
>>>> Am I misunderstanding the user of the EXIT command, or is this a
>>>> NetStorage quirk and I need to post there?
>>>>
>>>> If EXIT is the not the right command, then how in a container login
>>>> script can I tell it to NOT run the user login script?
>>>>
>>>> Thanks
>>>> James
>>>>
>>>
>>>

>>
>>

>
>



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.