Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> User Access, Permissions to shared folder
squib
post Sep 20 2004, 06:49 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 20-September 04
Member No.: 3,803



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
Go to the top of the page
 
+Quote Post
Robert83
post Sep 21 2004, 10:11 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



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


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
squib
post Sep 21 2004, 12:35 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 20-September 04
Member No.: 3,803



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
Go to the top of the page
 
+Quote Post
Robert83
post Sep 22 2004, 02:30 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



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


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
squib
post Sep 22 2004, 08:42 AM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 20-September 04
Member No.: 3,803



Wow...

Thanx Robert83,

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

Thanx again,

squib
Go to the top of the page
 
+Quote Post
squib
post Sep 22 2004, 10:36 AM
Post #6


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 20-September 04
Member No.: 3,803



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
Go to the top of the page
 
+Quote Post
Robert83
post Sep 22 2004, 10:53 AM
Post #7


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



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


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
squib
post Sep 22 2004, 11:10 AM
Post #8


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 20-September 04
Member No.: 3,803



Thanx again...

squib
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 11th December 2017 - 02:07 PM