LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2006, 09:18 AM   #1
vba_djs
LQ Newbie
 
Registered: Nov 2006
Location: United States
Distribution: Ubuntu 12.4
Posts: 12

Rep: Reputation: 0
Samba user variable question


My smb.conf file contains the following for the logon path:

logon path = \\%L\Profiles\%U

Some of the documentation I've read uses a lower-case u while other documentation uses an upper-case U.

Does this matter at logon?

To me it seems that each variable represents the same value when someone is loggin into the domain.

Thanks.
 
Old 12-12-2006, 10:56 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,397
Blog Entries: 1

Rep: Reputation: 64
Quote:
Originally Posted by From the samba users manual
VARIABLE SUBSTITUTIONS

Many of the strings that are settable in the config file can take substitutions. For example the option “path = /tmp/%u” is interpreted as “path = /tmp/john” if the user connected with the username john.

These substitutions are mostly noted in the descriptions below, but there are some general substitutions which apply whenever they might be relevant. These are:

%U

session username (the username that the client wanted, not necessarily the same as the one they got).
...
%u

username of the current service, if any.
Based on that, I believe the correct would be the session username, the Upper case U.
The ", if any." from the lower case u explanation, make me think that there are situations where the username is null or whatever.

I have %U (upper case) in all mappings here, just in case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot start vnc server because the USER environment variable is not set izac5 Linux - Newbie 4 11-21-2009 09:10 PM
1:root vncserver: The USER environment variable is not set. Niceman2005 Linux - Software 1 05-24-2006 11:13 PM
Allocating memory for user program variable from kernel module appas Programming 2 08-12-2004 11:52 PM
SAMBA 3.0.2a not working with %U variable MS3FGX Linux - Networking 4 04-23-2004 12:35 PM
Samba user add question phlome Linux - Networking 1 09-10-2003 03:11 PM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration