I'm having trouble getting irssi, the irc client, to write to a mounted cifs share. I have the uid, and gid set to my user as well as setting the permissions on the share to being very permissive. When I tried to download a file in irssi I get an error that the file can't be created, and that the text file is busy.

Here is the command I'm mounting the drive with (as root for my generic user)

mount -t cifs -v -o username=user,password=pass,uid=1001,gid=1001,dir_mode=0777 \
    //server/myshare /mnt/cloud

Anyone have a clue what might be the issue? I'm running 2.6.34-gentoo.

  • 1
    Is your user allowed to write to /mnt/cloud normally? Can you post the specific error output of irrsi? – user13742 Jan 2 '12 at 23:35
  • 01:32 DCC can't create file /mnt/cloud/*filename*: Text file busy. As for the folder, yes the user can edit files, create files and folders, delete. I even wrote a script in php executing a command on the commmand line and it was also able to edit the folder. – Hath995 Jan 3 '12 at 0:53
  • Can't answer this question, but some pointers: Here's what irssi does to save a received file (see void sig_dccget_connected), and here's someone's hints regarding the ETXTBSY. Maybe you can try to approximate what irssi does via command line to corner the issue? – sr_ Jan 3 '12 at 9:50

irssi normally won't save DCC downloads outside of a jail it imposes. On my system, that's my home directory. Try this:

/set dcc_download_path /mnt/cloud

Which will allow dcc to save files to anything under /mnt/cloud, but nowhere else.

NOTE: Be very careful that there is only one space after dcc_download_path and no "=" sign. Even multiple spaces will be taken as part of the path.

| improve this answer | |
  • I've actually been using the /set dcc_download_path command. It didn't help. – Hath995 Jan 5 '12 at 21:47
  • and no "=" sign is the key – deadfish May 16 '18 at 23:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.