Re: "mount" as a user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> To automatically mount an smb file system at boot, I have added the following 
> line in my /etc/fstab file. You can specify User and Group ownership by 
> number. (Replace "500" with the value correct for your system.) Get those 
> from the /etc/passwd and /etc/group files respectivly. 
> 
> //10.7.7.20/Data  /mnt/WinXP  smbfs   uid=500,gid=500,credentials=/etc/smb.txt
> 
> The "credentials" paramenter points to file with the following format:
> username = YourUserName
> password = YourPassword
> 
> The drawback here is having your UserID and password in plain text file. I at 
> recommend:
> chmod 600 /etc/smb.txt
> chown root:root /etc/smb.txt
> 
> So it's at least only readable by root.

Adding uid,gid works great.

Thanks to everyone for the help.

James


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux