- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- samba user.map question -> user home directory not...
Operating System - HP-UX
1821638
Members
3095
Online
109633
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 07:00 AM
тАО06-12-2002 07:00 AM
samba user.map question -> user home directory not found
I have an nfs server that is also now running samba on it. This server participates in nis. The users home directories in the nis passwd file is mapped to /va7400/home, but on the nfs/samba server, the home directory is mounted as just /home. In my smb.conf file, i created an entry:
[homes]
comment = Home Directories
path = /home/%U
This works well for 97% of my users. (i tried /home/%u and that didn't work with the usermap)
My problem is with the usermap. I have about 7 users with names larger than 8 characters, example from user.map
ssurapan = ssurapaneni
Where, the user is using ssurapaneni as the windows login name, and ssurapan is his unix login name.
When this user tries to click on the homes share via windows, an error comes up on windows, and the following message appears in the users samba logfile:
[2002/06/12 10:50:31, 0] smbd/service.c:(248)
ssurapaneni-w2k (10.101.24.42) couldn't find service ssurapan
I have verified that /home/ssurapan does exist. Does anyone know why this does not work?
Any help would be appreciated!
thanks
mark
[homes]
comment = Home Directories
path = /home/%U
This works well for 97% of my users. (i tried /home/%u and that didn't work with the usermap)
My problem is with the usermap. I have about 7 users with names larger than 8 characters, example from user.map
ssurapan = ssurapaneni
Where, the user is using ssurapaneni as the windows login name, and ssurapan is his unix login name.
When this user tries to click on the homes share via windows, an error comes up on windows, and the following message appears in the users samba logfile:
[2002/06/12 10:50:31, 0] smbd/service.c:(248)
ssurapaneni-w2k (10.101.24.42) couldn't find service ssurapan
I have verified that /home/ssurapan does exist. Does anyone know why this does not work?
Any help would be appreciated!
thanks
mark
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 12:40 PM
тАО06-18-2002 12:40 PM
Re: samba user.map question -> user home directory not found
Mark,
I've seen this type of behavior with Win9[5/8] clients. XP will probably also fall into this category. They can't always recognize a share name greater than eight characters. According to my O'Reilly book on "Using Samba", p.86:
"%U=Requested client username (not always used by Samba)"
Have you tried using %u in the smb.conf file and synchronizing the NT and UNIX password with smbpasswd?
Good luck...
Gus
I've seen this type of behavior with Win9[5/8] clients. XP will probably also fall into this category. They can't always recognize a share name greater than eight characters. According to my O'Reilly book on "Using Samba", p.86:
"%U=Requested client username (not always used by Samba)"
Have you tried using %u in the smb.conf file and synchronizing the NT and UNIX password with smbpasswd?
Good luck...
Gus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 12:44 PM
тАО06-18-2002 12:44 PM
Re: samba user.map question -> user home directory not found
Yes i have tried that variable. The problem is that the %U or %u doesnt seem to work.
The only thing i could do to figure this out quickly was to make a sym link, and remove the path statement within the samba share.
So users connect to /va7400/home, and now the symlink points them to /home.
It works.
thanks for your response.
The only thing i could do to figure this out quickly was to make a sym link, and remove the path statement within the samba share.
So users connect to /va7400/home, and now the symlink points them to /home.
It works.
thanks for your response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2002 03:02 PM
тАО06-18-2002 03:02 PM
Re: samba user.map question -> user home directory not found
Mark,
Interesting problem here. I would take a look at the following parameters in smb.conf:
nis homedir = yes/no
homedir map = amd.map
Check out this chaper from O'Reilly Samba book:
http://www.oreilly.com/catalog/samba/chapter/book/ch06.pdf
(last page, 46)
However, since 97% of your users work just fine, using the usermap, it makes me wonder.
I would also look from the 'ssurapaneni-w2k' workstation to ensure you know the exact username that the client is passing to the samba server. You may want to look at:
username level = 3
Also what version of samba are you running? 2.x? Thanks.
-Mike
Interesting problem here. I would take a look at the following parameters in smb.conf:
nis homedir = yes/no
homedir map = amd.map
Check out this chaper from O'Reilly Samba book:
http://www.oreilly.com/catalog/samba/chapter/book/ch06.pdf
(last page, 46)
However, since 97% of your users work just fine, using the usermap, it makes me wonder.
I would also look from the 'ssurapaneni-w2k' workstation to ensure you know the exact username that the client is passing to the samba server. You may want to look at:
username level = 3
Also what version of samba are you running? 2.x? Thanks.
-Mike
The network is the computer, yeah I stole it from Sun, so what?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP