LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How do I set up a new user so that they can see a folder on a Red Hat server? (https://www.linuxquestions.org/questions/red-hat-31/how-do-i-set-up-a-new-user-so-that-they-can-see-a-folder-on-a-red-hat-server-498419/)

isara 11-03-2006 06:04 PM

How do I set up a new user so that they can see a folder on a Red Hat server?
 
Hi everyone. Newbie question here.

I have used Samba to give read/write permission for one folder to users in my group. I added a user to my group, but I'm still not able to log on to the server(through a Windows machine) using the new user's name and password. I can log on using my own name and password, though, so the issue doesn't seem to be Windows.

Does anyone have a handy guide or instructions outlining exactly what I need to do in Red Hat to allow a user to access a folder through a Windows network? I feel like I'm just flying blind here (being neither Linux-savvy nor network-savvy).

Thanks so much in advance.

rylan76 11-04-2006 01:02 AM

Hi

Here's my smb.conf. Maybe it'll help you out - it allows the Windows machines with the listed IPs to directly access the configured share on my Linux machine, for reading and writing, with no passwords required from the Windows machines. Which seems to be what you want to do? Take note that it is not very secure, though - I've basically ignored all security precautions just to get it working as quickly as possible:

[global]

netbios name = stefan
workgroup = GOEDEHOOP10
security = share
log file = /var/log/samba.log
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = 169.254.255.10 169.254.255.11 169.254.255.20 169.254.255.30 127.0.0.1 169.254.255.40 169.254.255.50 169.254.255.60 169.254.255.70 169.254.255.80
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

[shared]
path = /mnt/win/shared
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes

Additionally, with the above, you don't seem to need to create Samba users at all. Anybody who is one of the listed machines can get read and write access to the share on my Linux box. All they need to do on the XP machines is to add a new network place, and list my machine by IP with \shared at the end.

Works beautifully. Let us know how you get on.

Regards,

isara 11-04-2006 01:06 AM

Hey thanks Stefan. As this is a work machine, it does require a high level of security. I know that what I'm asking for can be done (since my consultant set it up for me before - but he seems to have disappeared), but because I was only trying to figure it out intuitively, I seem to have missed some step somewhere along the line.

rylan76 11-06-2006 12:39 AM

Well, the above should be a starting point then. Once you get the above setup going, maybe it'd be best to incrementally start setting it up in a more secure guise?


All times are GMT -5. The time now is 06:56 AM.