find /path/to/parent -name '*.deb' -exec cp -v --backup=numbered -t /path/to/newdir {} +
The --backup=numbered option will add a simple numbered suffix to each duplicate file.
xhost +local:user_name
Then run this command:
sudo -u user_name -H application_name
chgrp adm /media/shams/e46cafba-2656-4e42-b1c9-6417f28839 -R
Now give the read and write permission to group for this drive:
chmod g+rwx /media/shams/e46cafba-2656-4e42-b1c9-6417f28839 -R
Top