Re: Samba Q?

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

 



Gene Heskett wrote:

How about in a custom /etc/init.d/asmb file, so I can do a 'service asmb lappyup' and the lappy, if present on the network, will be mounted as a cifs share on /mnt/lappy? If its defined as user=somebody,passwd=somebodies-long-password in the mount.cifs command in that script, its said to be too long, and it is nearly 20 characters long. However, if I cat the line from the file, copy & paste it but without the passwd portion and exec it, it then asks me for it, and its fine with that long a passwd from the interactive shell. Why can't I put it in the script?

It appears to be an arbitrary limitation in mount.cifs. It looks to me like it'll take a password of up to 64 characters if it's specified in the credentials file, or if you specify "-o user%password", or if you specify '--password' or '-p' with a password as command line arguments, or if it's in the PASSWD environment variable. You are only limited to 17 characters if you use the '-o user=name,passwd=pass' construct. It's probably a mistake left over from the first version of that program, which was super ugly.

Since Linux doesn't protect command line arguments or environment variables from other users, I recommend using the credentials file. It should be owned by root, and mode 0400. Even if you're on a single user system now, this is a good habit to develop.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux