LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   rh8 to xp non-root user setup via samba (https://www.linuxquestions.org/questions/linux-networking-3/rh8-to-xp-non-root-user-setup-via-samba-328761/)

johnli2 05-31-2005 01:27 AM

rh8 to xp non-root user setup via samba
 
Hi All,
I new to Linux [8 week now].
I use RH8 and WinXP and have finally fumbled my way [with some help] to communicate between the PC's above, as root user over NIC cards.
I would now like to modify samba to allow normal user access rather than root.
At present I type:
server network restart
server smb start
smbclient -L localhost
smbmount //winxppc/linuxshare /mnt/linuxshare

I want to set up a batch file on startup also rather than type the above 4 lines each time as I do now. Can anyone help me achieve these steps please.
Sorry about the typo before

saneax 05-31-2005 03:32 AM

For the start up at boot do this..
chkconfig smb on
chkconfig network on, so you dont need to restart it again and again...

now on the smbmount to function with other users ? elaborate on that ?

johnli2 05-31-2005 07:32 AM

Thank you Saneax for a response.

I have read the manual entries you mentioned and think I understand the following:
chkconfig smb on
chkconfig network on

What about the command? :
smbclient -L localhost

With regard to: smbmount //winxppc/linuxshare /mnt/linuxshare

As I understand it, I have a folder on my WinXP PC called 'linuxshare', being the shared directory for RH8 and the files within the folder are seen on my RH8 in the /mnt/linuxshare directory.
As a root user on RH8 I can access any file in the /mnt/linuxshare directory, but user 'u1', a non-root user, cannot. I do not want the root user to have to change the ownership of any file each time (if that is possible), just want 'u1' user to have ownership rights to be able to edit/use the file directly.

I am not sure if I have explained clearly enough, but let me know and I add more detail if required.


All times are GMT -5. The time now is 01:56 PM.