Help - Search - Members - Calendar
Full Version: User Access
Linuxhelp > Support > Technical Support
squib
Hi all,

I have Windows XP workgroup with a RedHat 8.0 box as a file server. Problem is when logged in as a local user X I cannot get access to a file share I setup for access for a different user/login.
I can access shares setup for user X if I am logged in as user X.
I just can't get access to another file share setup for another user if I am logged in as usr X...
I am expecting a dialog box would appear that would allow me to enter the credetials of another user so I can access this share but I just get "access denied" no dialog box.

If I log in as user Z, I can access this share I am trying to access under user X's login.

Is there a way to access folders setup for another user if you are logged in as someone else?

Windows will allow you to enter credetials and access..does RedHat too? or am I not setting permissions up correctly.

squib
Robert83
Hi,

yes there is a way
and it's called su

open up the console, or a terminal
and type
CODE
su - username

enter password, and from now on you'll be able to view change the files of that user.

you can also do a su - root and enter root password and change everything without worrying about getting a access denied , but be carefull

Sincerely
Robert B
squib
Thanx for the reply....Robert83,

Problem is the user is logged into and XP box under one user account and is trying to access a shared folder that only another account has permissons to....I am expecting a dialog box to appear that would allow you to enter a user name and password of the account with permissions to access the shared folder...all I get is access denied.
Doesn't seem right that you would have to keep logging out and in as a different user/group in order to gain access to different shared folders.

Is there no way to conjure up a dialog box that would allow you to enter a user name and password of the account with permissions to access the shared folder?

squib
Robert83
oh...

I misunderstood you smile.gif

sorry
here is a sample smb.conf file that works with many users and passwords

[global]
workgroup = hell
server string = doom3
log file = /var/log/samba/log.%m
max log size = 50
security = user
prefered master = Yes
local master = Yes
wins support = Yes
os level = 255
hosts allow = 127.0.0.1 192.168.0.0/24
hosts deny = 0.0.0.0/0.0.0.0
time server = yes

[homes]
comment = Home Directories
writable = Yes
valid users = %S
create mode = 0777
directory mode = 0777
browseable = no

[Capriolo]
comment = Capriolo
path = /share/capriolo
writable = Yes
guest ok = no
printable = no
create mode = 0777
directory mode = 0777
browseable = Yes
valid users = robert devid sarah
**for the above share CAPRIOLO ONLY!!! users robert devid sarah will be asked a password **since they are VALID USERS the rest can't access it, so user toni will never be able to access this **share cause he is not a valid user in the first place

[WinXP(C:)]
comment = WinXP(C:)
path = /share
writable = Yes
guest ok = no
printable = no
create mode = 0777
directory mode = 0777
browseable = Yes
valid users = robert devid sarah james

[DATA(D:)]
comment = public
path = /share2
writable = Yes
guest ok = Yes
printable = no
create mode = 0777
directory mode = 0777
browseable = Yes


so in order for a user to be asked a password he must be in the valid users list on that share, otherwise he/she won't be asked a password, and won't be able to access that share in full read write mode.

Sincerely
Robert B

ps.: you can www.google.com putty.exe and use it to access the linux box from the windows computer
/etc/init.d/smb restart once your done
use vi to edit /etc/samba/smb.conf if possible

this way you'll be able to instantly test the new config without having to run around
squib
Wow...

Thanx Robert83,

I'll give it a shot and get back to you...

Thanx again,

squib
squib
Got it Robert83...it worked...thanx a million.

Can you answer one more question?

In your config file you have [WinXP(C:)] with valid users....is this to allow access to C: drive of a dual boot Linux/XP box for the named users?

Thanx again,

squib
Robert83
Hi,

no...to tell you the truth smile.gif

the original file server and bridge computer was a WinXP computer with these shares , and I changed it to linux, and since many shortcuts were pointing there and a lot of mapped drives to, I named the linux computer after the windows computer with the same share names...

but you can share the windows drives of a dual boot computer , by mounting the windows partition to /share and then with samba sharing it , but I don't know how well it would work...

Sincerely
Robert B
squib
Thanx again...

squib
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.