Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-12-2006, 09:18 AM   #1
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.

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

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

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:


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

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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 PM.

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